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),