From 38889f5533b9a194e36867bfcb3a89da2e7451d1 Mon Sep 17 00:00:00 2001 From: support Date: Mon, 23 Nov 2026 07:16:09 +0100 Subject: [PATCH] Lock an account out after five wrong passwords on new installations 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. --- .../Grand.Module.Installer/Services/InstallDataSettings.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Modules/Grand.Module.Installer/Services/InstallDataSettings.cs b/src/Modules/Grand.Module.Installer/Services/InstallDataSettings.cs index 22cafa6ba..155d729fd 100644 --- a/src/Modules/Grand.Module.Installer/Services/InstallDataSettings.cs +++ b/src/Modules/Grand.Module.Installer/Services/InstallDataSettings.cs @@ -260,7 +260,7 @@ await _settingRepository.SaveSetting(new CustomerSettings { PasswordRegularExpression = "^.{6,}$", PasswordRecoveryLinkDaysValid = 7, PasswordLifetime = 90, - FailedPasswordAllowedAttempts = 0, + FailedPasswordAllowedAttempts = 5, FailedPasswordLockoutMinutes = 30, UserRegistrationType = UserRegistrationType.Standard, NotifyNewCustomerRegistration = false,