fix server auth route on check

This commit is contained in:
2023-03-16 08:48:49 +01:00
parent 9852825ac9
commit 2904fb2671
+1
View File
@@ -22,6 +22,7 @@ router.post(
//Huge mess to retrieve server id from expressBasicAuth. We probably should fix it.
(req, res, next) => {
if (!req) res.sendStatus(500)
console.log('authentification try with', req.headers['authorization'])
return expressBasicAuth({
authorizeAsync: true,
authorizer: CheckServerToken.bind(req),