fix: #11254, return check for reroll property

This commit is contained in:
nesro
2023-02-02 14:19:45 +01:00
committed by Julian Lam
parent 705cd13ad3
commit 202378b939

View File

@@ -339,7 +339,7 @@ authenticationController.doLogin = async function (req, uid) {
return;
}
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);
};