fix: admin relogin

This commit is contained in:
Barış Soner Uşaklı
2020-02-03 11:04:20 -05:00
parent c35a21d7f0
commit a5ef6b53b8

View File

@@ -321,7 +321,7 @@ authenticationController.onSuccessfulLogin = async function (req, uid) {
* That behaviour is no longer required, onSuccessfulLogin is now automatically * That behaviour is no longer required, onSuccessfulLogin is now automatically
* called in NodeBB core. However, if already called, return prematurely * called in NodeBB core. However, if already called, return prematurely
*/ */
if (req.loggedIn) { if (req.loggedIn && !req.session.forceLogin) {
return true; return true;
} }