You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Do not discard TOTP lockout state write failures #10
If the database write fails, the caller receives an ordinary invalid-code result while the failure count or lockout was not stored. Repeated requests can therefore continue from stale persisted state instead of enforcing the intended failure limit.
Completion criteria
Surface a factor-state persistence failure instead of returning only ErrInvalidTOTP when the failed-attempt update could not be stored.
Preserve ErrInvalidTOTP when the update is persisted successfully.
Preserve the existing lockout threshold, replay handling, and successful verification state update.
Add focused tests that inject a storage write failure before and at the lockout threshold.
Verify callers do not misreport a storage failure as ordinary invalid credentials where a server-side failure response is appropriate.
Activity