fix: #11254, return check for reroll property

isekai-main
nesro 2 years ago committed by Julian Lam
parent 705cd13ad3
commit 202378b939

@ -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);
};

Loading…
Cancel
Save