Skip to content

Lock an account out after five wrong passwords on new installations - #1110

Merged
KrzysztofPajak merged 1 commit into
developfrom
fix/login-lockout-default
Nov 23, 2026
Merged

KrzysztofPajak merged 1 commit into
developfrom
fix/login-lockout-default

Conversation

@KrzysztofPajak

Copy link
Copy Markdown
Member

New installations shipped CustomerSettings.FailedPasswordAllowedAttempts = 0, which turns the login lockout off (CustomerLoginFailedEventHandler), so passwords could be guessed without limit.

Changes

  • InstallDataSettings: FailedPasswordAllowedAttempts = 5. With the existing FailedPasswordLockoutMinutes = 30, an account is locked for 30 minutes after five wrong passwords in a row. A successful sign-in resets the count (CustomerLoggedInEventHandler).

Notes

  • Existing installations keep their setting; there is no migration. Admin → Settings → Customer settings changes it.
  • A lockout can also be triggered on purpose by someone who knows only the e-mail address; 30 minutes keeps that short.
  • With Frontend API login: honour the login lockout #1101 the frontend API login counts and honours the lockout too.

Tests

  • Installer default only; Grand.Module.Installer builds. CustomerLoginFailedNotificationHandlerTests already cover the lockout itself.

New installations shipped FailedPasswordAllowedAttempts = 0, which turns the login lockout off, so passwords could be guessed without limit. New installations now lock an account for the configured 30 minutes after five wrong passwords in a row. Existing installations keep their setting.
Copilot AI balanced review requested due to automatic review settings November 23, 2026 06:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@KrzysztofPajak
KrzysztofPajak merged commit 6b0d362 into develop Nov 23, 2026
9 checks passed
@KrzysztofPajak
KrzysztofPajak deleted the fix/login-lockout-default branch November 23, 2026 17:08
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.

2 participants