refactor(web): replace SOGoGoogleAuthenticatorEnabled with

SOGoTOTPEnabled

Fixes #5294
This commit is contained in:
Francis Lachapelle committed 2021-06-16 14:59:02 -04:00
1 parent 34184aa3fc
commit 20b2fd5e45
11 files changed
+40 -36

No files matched your search

+3 -3
View File
@@ -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];
}
//