mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-26 16:41:21 +01:00
fix: missing await
This commit is contained in:
@@ -27,7 +27,7 @@ module.exports = function (User) {
|
|||||||
await User.auth.logAttempt(uid, ip);
|
await User.auth.logAttempt(uid, ip);
|
||||||
const ok = await Password.compare(password, hashedPassword);
|
const ok = await Password.compare(password, hashedPassword);
|
||||||
if (ok) {
|
if (ok) {
|
||||||
User.auth.clearLoginAttempts(uid);
|
await User.auth.clearLoginAttempts(uid);
|
||||||
}
|
}
|
||||||
return ok;
|
return ok;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user