Опубликовано через кнопку

This commit is contained in:
samruk_3 2026-09-21 15:52:57 +00:00
parent 3c3fadb716
commit 7c25b3f280

View File

@ -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) {