feat(password-recovery): Add password recovery with secret question or secondary email

This commit is contained in:
smizrahi
2022-10-03 08:56:41 +02:00
parent 6931186bba
commit 656807b77d
47 changed files with 1729 additions and 159 deletions
+48
View File
@@ -39,6 +39,14 @@ NSString *SOGoWeekStartJanuary1 = @"January1";
NSString *SOGoWeekStartFirst4DayWeek = @"First4DayWeek";
NSString *SOGoWeekStartFirstFullWeek = @"FirstFullWeek";
NSString *SOGoPasswordRecoveryDisabled = @"Disabled";
NSString *SOGoPasswordRecoveryQuestion = @"SecretQuestion";
NSString *SOGoPasswordRecoveryQuestion1 = @"SecretQuestion1";
NSString *SOGoPasswordRecoveryQuestion2 = @"SecretQuestion2";
NSString *SOGoPasswordRecoveryQuestion3 = @"SecretQuestion3";
NSString *SOGoPasswordRecoverySecondaryEmail = @"SecondaryEmail";
@implementation SOGoUserDefaults
+ (NSString *) userProfileClassName
@@ -941,4 +949,44 @@ NSString *SOGoWeekStartFirstFullWeek = @"FirstFullWeek";
return [self stringArrayForKey: @"SOGoContactsCategories"];
}
- (void) setPasswordRecoveryMode: (NSString *) newValue
{
[self setObject: newValue forKey: @"SOGoPasswordRecoveryMode"];
}
- (NSString *) passwordRecoveryMode
{
return [self stringForKey: @"SOGoPasswordRecoveryMode"];
}
- (void) setPasswordRecoveryQuestion: (NSString *) newValue
{
[self setObject: newValue forKey: @"SOGoPasswordRecoveryQuestion"];
}
- (NSString *) passwordRecoveryQuestion
{
return [self stringForKey: @"SOGoPasswordRecoveryQuestion"];
}
- (void) setPasswordRecoveryQuestionAnswer: (NSString *) newValue
{
[self setObject: newValue forKey: @"SOGoPasswordRecoveryQuestionAnswer"];
}
- (NSString *) passwordRecoveryQuestionAnswer
{
return [self stringForKey: @"SOGoPasswordRecoveryQuestionAnswer"];
}
- (void) setPasswordRecoverySecondaryEmail: (NSString *) newValue
{
[self setObject: newValue forKey: @"SOGoPasswordRecoverySecondaryEmail"];
}
- (NSString *) passwordRecoverySecondaryEmail
{
return [self stringForKey: @"SOGoPasswordRecoverySecondaryEmail"];
}
@end