mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-28 09:36:16 +01:00
fix: #11254, return check for reroll property
This commit is contained in:
@@ -339,7 +339,7 @@ authenticationController.doLogin = async function (req, uid) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const loginAsync = util.promisify(req.login).bind(req);
|
const loginAsync = util.promisify(req.login).bind(req);
|
||||||
await loginAsync({ uid: uid }, { keepSessionInfo: req.res.locals !== false });
|
await loginAsync({ uid: uid }, { keepSessionInfo: req.res.locals.reroll !== false });
|
||||||
await authenticationController.onSuccessfulLogin(req, uid);
|
await authenticationController.onSuccessfulLogin(req, uid);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user