diff --git a/src/user/password.js b/src/user/password.js index e5a48fc7b1..352b73e062 100644 --- a/src/user/password.js +++ b/src/user/password.js @@ -27,7 +27,7 @@ module.exports = function (User) { await User.auth.logAttempt(uid, ip); const ok = await Password.compare(password, hashedPassword); if (ok) { - User.auth.clearLoginAttempts(uid); + await User.auth.clearLoginAttempts(uid); } return ok; };