From 4818ec377e55f28c6b03bad9e4033e6047794c15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Mon, 2 Nov 2020 15:13:22 -0500 Subject: [PATCH] fix: missing await --- src/user/password.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/user/password.js b/src/user/password.js index e5a48fc7b130..352b73e06227 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; };