Files
nanodrop/tests
Brendan Chen 11e87f353d
All checks were successful
Deploy to Homelab / deploy (push) Successful in 18s
feat(auth): add login-attempts DB layer and lockout service
Persists per-username failed-attempt counts and computed locked_until
timestamps. Lockout service computes exponential-backoff durations
(min(base * 2^(count-threshold), max)) with auto-unlock once locked_until
passes. Successful login deletes the row, resetting the counter.

Pure DB-keyed lockout — survives server restarts and shares state across
both login routes (HTML and JSON) when wired in a later step.
2026-05-03 03:29:09 -07:00
..