mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: admin relogin
This commit is contained in:
@@ -321,7 +321,7 @@ authenticationController.onSuccessfulLogin = async function (req, uid) {
|
||||
* That behaviour is no longer required, onSuccessfulLogin is now automatically
|
||||
* called in NodeBB core. However, if already called, return prematurely
|
||||
*/
|
||||
if (req.loggedIn) {
|
||||
if (req.loggedIn && !req.session.forceLogin) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user