Skip to content

Commit

Permalink
fix handleStrategyLogin invalid token/user
Browse files Browse the repository at this point in the history
Signed-off-by: si458 <simonsmith5521@gmail.com>
  • Loading branch information
si458 committed Jun 1, 2024
1 parent 52a2194 commit 62199d8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions webserver.js
Original file line number Diff line number Diff line change
Expand Up @@ -2809,10 +2809,8 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
parent.authLog('handleStrategyLogin', `${req.user.strategy.toUpperCase()}: LOGIN SUCCESS: USER: "${req.user.sid}"`);
}
} else {
parent.authLog('handleStrategyLogin', `${req.user.strategy.toUpperCase()}: LOGIN FAILED: USER: "${req.user.sid}" REQUEST CONTAINS NO USER OR SID`);
parent.authLog('handleStrategyLogin', `LOGIN FAILED: NO USER: REQUEST CONTAINS NO USER OR SID`);
}

parent.authLog('handleStrategyLogin', `${req.user.strategy.toUpperCase()}: User Authenticated: ${JSON.stringify(user)}`);
//res.redirect(domain.url); // This does not handle cookie correctly.
res.set('Content-Type', 'text/html');
res.end('<html><head><meta http-equiv="refresh" content=0;url="' + domain.url + '"></head><body></body></html>');
Expand Down

0 comments on commit 62199d8

Please sign in to comment.