wip: apply auth-hardening (interrupted by session end)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-17 16:22:11 +03:00
co-authored by Claude Opus 5.5
parent f014f7bc0d
commit cf0f6256d3
26 changed files with 1728 additions and 64 deletions
+12
View File
@@ -0,0 +1,12 @@
from enum import StrEnum
class LoginOutcome(StrEnum):
"""Исход попытки входа для предела неудачных входов (change
`auth-hardening`, решение 3): неверная пара оставляет резерв, успех
сбрасывает счёт пары, прочее (503, 429 бюджета, обрыв) резерв
возвращает. В БД не хранится."""
FAILED = "failed"
SUCCEEDED = "succeeded"
ABORTED = "aborted"