Skip to content

Node.js based forum software built for the modern web

fix: missing await

Barış Soner Uşaklı4818ec377e55
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;
};