From ddf3812cdc788ca34dd0a42deebace43918ce72d Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 16 Oct 2019 13:51:37 -0400 Subject: [PATCH] fix: passwords always expiring upon login --- src/controllers/authentication.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/authentication.js b/src/controllers/authentication.js index 6c16300fd8..2e112fb2db 100644 --- a/src/controllers/authentication.js +++ b/src/controllers/authentication.js @@ -371,7 +371,7 @@ authenticationController.localLogin = async function (req, username, password, n const 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),