diff --git a/src/controllers/authentication.js b/src/controllers/authentication.js index b04b84afda..eec386bb8f 100644 --- a/src/controllers/authentication.js +++ b/src/controllers/authentication.js @@ -328,6 +328,7 @@ authenticationController.onSuccessfulLogin = async function (req, uid) { req.loggedIn = true; await meta.blacklist.test(req.ip); await user.logIP(uid, req.ip); + await user.bans.unbanIfExpired([uid]); req.session.meta = {};