#3124: limit number of attempt for password recovery

This commit is contained in:
Hivert Quentin committed 2026-11-11 20:33:09 +01:00
1 parent 17403a5a81
commit 6356474298
10 files changed
+246 -28

No files matched your search

@@ -260,6 +260,8 @@
error = l("Password change failed - Password is in history");
} else if (perr == passwordPolicyConfig.PolicyPasswordRecoveryInvalidToken) {
error = l("Invalid token. Could not change password");
} else if (perr == passwordPolicyConfig.PolicyAccountLocked) {
error = l("Your account was locked due to too many failed attempts.");
} else {
error = l("Unhandled policy error: %{0}").formatted(perr);
perr = passwordPolicyConfig.PolicyPasswordUnknown;