Merge branch 'develop' of github.com:thecodingmachine/workadventure into oidcProfile

This commit is contained in:
Lurkars
2022-02-28 10:35:15 +01:00
841 changed files with 3512 additions and 12248 deletions
+2
View File
@@ -84,11 +84,13 @@ export class AdminController extends BaseController {
if (ADMIN_API_TOKEN === "") {
res.writeStatus("401 Unauthorized").end("No token configured!");
res.end();
return;
}
if (token !== ADMIN_API_TOKEN) {
console.error("Admin access refused for token: " + token);
res.writeStatus("401 Unauthorized").end("Incorrect token");
res.end();
return;
}