#3126: limit totp attempt

This commit is contained in:
Hivert Quentin committed 2026-11-10 14:27:05 +01:00
1 parent 1a6642c366
commit 49049f6d42
9 files changed
+105

No files matched your search

+17
View File
@@ -568,6 +568,23 @@ static memcached_st *handle = NULL;
ofType: @"failedrecovery"];
}
//
// SOGo TOTP verification failed counts (web login second factor).
//
- (void) setFailedTotpCount: (int) theCount
forLogin: (NSString *) theLogin
{
[self _setFailedCount: theCount
forLogin: theLogin
ofType: @"failedtotp"];
}
- (NSDictionary *) failedTotpCountForLogin: (NSString *) theLogin
{
return [self _failedCountForLogin: theLogin
ofType: @"failedtotp"];
}
//
//
//