From 202378b939a7279af7a39f597b7e75be3890deff Mon Sep 17 00:00:00 2001 From: nesro Date: Thu, 2 Feb 2023 14:19:45 +0100 Subject: [PATCH] fix: #11254, return check for reroll property --- src/controllers/authentication.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/authentication.js b/src/controllers/authentication.js index 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); };