Skip to content

Commit

Permalink
fix: passwords always expiring upon login
Browse files Browse the repository at this point in the history
  • Loading branch information
julianlam committed Oct 16, 2019
1 parent ca3be1f commit ddf3812
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/authentication.js
Expand Up @@ -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),
Expand Down

0 comments on commit ddf3812

Please sign in to comment.