From a5ef6b53b8aab7b3e472eb3857c82ad3d72a6516 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Mon, 3 Feb 2020 11:04:20 -0500 Subject: [PATCH] fix: admin relogin --- 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 7bf27139fd..bb3768169f 100644 --- a/src/controllers/authentication.js +++ b/src/controllers/authentication.js @@ -321,7 +321,7 @@ authenticationController.onSuccessfulLogin = async function (req, uid) { * That behaviour is no longer required, onSuccessfulLogin is now automatically * called in NodeBB core. However, if already called, return prematurely */ - if (req.loggedIn) { + if (req.loggedIn && !req.session.forceLogin) { return true; }