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
+5 -4
View File
@@ -228,6 +228,7 @@ NSString *SOGoWeekStartFirstFullWeek = @"FirstFullWeek";
@"SOGoReminderEnabled", @"ReminderEnabled",
@"SOGoReminderTime", @"ReminderTime",
@"SOGoRemindWithASound", @"RemindWithASound",
@"SOGoTOTPEnabled", @"SOGoGoogleAuthenticatorEnabled",
nil];
[migratedKeys retain];
}
@@ -567,14 +568,14 @@ NSString *SOGoWeekStartFirstFullWeek = @"FirstFullWeek";
return [self stringForKey: @"SOGoAnimationMode"];
}
- (BOOL) googleAuthenticatorEnabled
- (BOOL) totpEnabled
{
return [self boolForKey: @"SOGoGoogleAuthenticatorEnabled"];
return [self boolForKey: @"SOGoTOTPEnabled"];
}
- (void) setGoogleAuthenticatorEnabled: (BOOL) newValue
- (void) setTotpEnabled: (BOOL) newValue
{
[self setBool: newValue forKey: @"SOGoGoogleAuthenticatorEnabled"];
[self setBool: newValue forKey: @"SOGoTOTPEnabled"];
}
- (void) setMailComposeWindow: (NSString *) newValue