fix handleStrategyLogin invalid token/user
Signed-off-by: si458 <simonsmith5521@gmail.com>
si458 committed
Jun 1, 2024 at 17:13 UTC
62199d805721ac974b9d5ff74b9133ccf6446cb7
1 file changed
+1
-3
webserver.js
+1
-3
@@ -2809,10 +2809,8 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
2809
parent.authLog('handleStrategyLogin', `${req.user.strategy.toUpperCase()}: LOGIN SUCCESS: USER: "${req.user.sid}"`);
2810
}
2811
} else {
2812
- parent.authLog('handleStrategyLogin', `${req.user.strategy.toUpperCase()}: LOGIN FAILED: USER: "${req.user.sid}" REQUEST CONTAINS NO USER OR SID`);
2812
+ parent.authLog('handleStrategyLogin', `LOGIN FAILED: NO USER: REQUEST CONTAINS NO USER OR SID`);
2813
}
2814
-
2815
- parent.authLog('handleStrategyLogin', `${req.user.strategy.toUpperCase()}: User Authenticated: ${JSON.stringify(user)}`);
2814
//res.redirect(domain.url); // This does not handle cookie correctly.
2815
res.set('Content-Type', 'text/html');
2816
res.end('<html><head><meta http-equiv="refresh" content=0;url="' + domain.url + '"></head><body></body></html>');