mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-02 05:40:43 +01:00
fix: missing await
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user