mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-11-08 10:13:40 +00:00
refactor(web): replace SOGoGoogleAuthenticatorEnabled with
SOGoTOTPEnabled Fixes #5294
This commit is contained in:
1 parent
34184aa3fc
commit
20b2fd5e45
11 files changed
+40
-36
No files matched your search
@@ -1002,7 +1002,7 @@ static NSArray *reminderValues = nil;
|
||||
return [NSString stringWithString: SOGoVersion];
|
||||
}
|
||||
|
||||
- (BOOL) isGoogleAuthenticatorEnabled
|
||||
- (BOOL) isTotpEnabled
|
||||
{
|
||||
#if defined(MFA_CONFIG)
|
||||
return YES;
|
||||
@@ -1011,9 +1011,9 @@ static NSArray *reminderValues = nil;
|
||||
#endif
|
||||
}
|
||||
|
||||
- (NSString *) googleAuthenticatorKey
|
||||
- (NSString *) totpKey
|
||||
{
|
||||
return [[context activeUser] googleAuthenticatorKey];
|
||||
return [[context activeUser] totpKey];
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
Reference in new issue
Block a user