#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

+11
View File
@@ -916,6 +916,17 @@ NSComparisonResult languageSort(id el1, id el2, void *context)
return v;
}
//
// Number of wrong secret question answers allowed during
// SOGoFailedLoginBlockInterval seconds before password recovery
// is blocked for the account. Defaults to 5 (see SOGoDefaults.plist),
// 0 disables the protection.
//
- (int) maximumFailedPasswordRecoveryCount
{
return [self integerForKey: @"SOGoMaximumFailedPasswordRecoveryCount"];
}
//
//
//