Skip to content

locked account fixes - #657

Merged
MarcelGeo merged 2 commits into
developfrom
locked_account_fixes
Aug 12, 2026
Merged

locked account fixes#657
MarcelGeo merged 2 commits into
developfrom
locked_account_fixes

Conversation

@varmar05

@varmar05 varmar05 commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

Use LoginHistory for account lockout. Enable all attempts to be stored in the table (needs periodic pruning to avoid storing archive data). Also DB-sync agent is now fully tracked in login_history table.

Display custom message in FE when account is locked.

- failed_login_attempts counter replaced by LoginHistory.count_recent_failures()
  over a configurable LOCKOUT_WINDOW, so old failures age out instead of
  persisting indefinitely until a successful login
- LoginHistory now records every login attempt, successful and failed
  (including from the DB-sync client), instead of only successes
- index migration split out and built CONCURRENTLY so it doesn't hold a
  write-blocking lock on login_history for the duration of the build
- login form shows a dedicated message on AccountLocked instead of the
  raw backend error text

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@varmar05
varmar05 requested a review from MarcelGeo August 4, 2026 11:51
@coveralls

Copy link
Copy Markdown

Coverage Report for CI Build 30906549419

Coverage increased (+0.03%) to 92.24%

Details

  • Coverage increased (+0.03%) from the base build.
  • Patch coverage: 73 of 73 lines across 3 files are fully covered (100%).
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 10309
Covered Lines: 9509
Line Coverage: 92.24%
Coverage Strength: 0.92 hits per line

💛 - Coveralls

Comment thread web-app/packages/lib/src/modules/user/store.ts Outdated
@varmar05
varmar05 requested a review from MarcelGeo August 6, 2026 09:17
@MarcelGeo
MarcelGeo merged commit 0f07ecb into develop Aug 12, 2026
5 checks passed
@MarcelGeo
MarcelGeo deleted the locked_account_fixes branch August 12, 2026 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants