Node.js based forum software built for the modern web
fix: passwords always expiring upon login
Julian Lamddf3812cdc78
diff --git a/src/controllers/authentication.js b/src/controllers/authentication.jsindex 6c16300fd8..2e112fb2db 100644--- a/src/controllers/authentication.js+++ b/src/controllers/authentication.js@@ -371,7 +371,7 @@ authenticationController.localLogin = async function (req, username, password, nconst uid = await user.getUidByUserslug(userslug);try {const [userData, isAdminOrGlobalMod, banned, hasLoginPrivilege] = await Promise.all([- db.getObjectFields('user:' + uid, ['uid', 'passwordExpiry']),+ user.getUserFields(uid, ['uid', 'passwordExpiry']),user.isAdminOrGlobalMod(uid),user.bans.isBanned(uid),privileges.global.can('local:login', uid),