Node.js based forum software built for the modern web
fix: #11254, return check for reroll property
nesro202378b939a7
diff --git a/src/controllers/authentication.js b/src/controllers/authentication.jsindex 2a006b321c..82dc6b1660 100644--- a/src/controllers/authentication.js+++ b/src/controllers/authentication.js@@ -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);};