fix: admin relogin

v1.18.x
Barış Soner Uşaklı 5 years ago
parent c35a21d7f0
commit a5ef6b53b8

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

Loading…
Cancel
Save