mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-03 15:54:18 +00:00
feat(password-recovery): Add password recovery with secret question or secondary email
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user