Skip to content

Commit

Permalink
fix: missing await
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed Nov 2, 2020
1 parent 1c8b8ce commit 4818ec3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/user/password.js
Expand Up @@ -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;
};
Expand Down

0 comments on commit 4818ec3

Please sign in to comment.