fix: missing await

v1.18.x
Barış Soner Uşaklı 4 years ago
parent 1c8b8ce14a
commit 4818ec377e

@ -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;
};

Loading…
Cancel
Save