Опубликовано через кнопку
This commit is contained in:
parent
3c3fadb716
commit
7c25b3f280
@ -105,6 +105,7 @@ function handleLogin(req, res) {
|
||||
}
|
||||
let ok = false;
|
||||
try { ok = store.verifyPassword(String(b.password || ""), user.salt, user.passwordHash); } catch (e) {}
|
||||
console.error("LOGIN_FAIL", b.login, String(user && user.id), "ok=" + ok);
|
||||
if (!ok) {
|
||||
user.failedCount = (user.failedCount || 0) + 1;
|
||||
if (user.failedCount >= 5) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user