refactor(web): replace SOGoGoogleAuthenticatorEnabled with

SOGoTOTPEnabled

Fixes #5294
This commit is contained in:
Francis Lachapelle
2021-06-16 14:59:02 -04:00
parent 34184aa3fc
commit 20b2fd5e45
11 changed files with 40 additions and 36 deletions
+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];
}
//