#3124: limit number of attempt for password recovery

This commit is contained in:
Hivert Quentin committed 2026-11-10 14:06:00 +01:00
1 parent 0a57b95cfc
commit 1a6642c366
11 files changed
+249 -29

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;