Node.js based forum software built for the modern web
feat: automatically unban users in onSuccessfulLogin
Julian Lam6e5ec3f89535
diff --git a/src/controllers/authentication.js b/src/controllers/authentication.jsindex 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 = {};