mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-11-11 03:21:32 +00:00
#3126: limit totp attempt
This commit is contained in:
1 parent
1a6642c366
commit
49049f6d42
9 files changed
+105
No files matched your search
@@ -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"];
|
||||
}
|
||||
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
Reference in new issue
Block a user