Skip to content

Commit

Permalink
feat(password-recovery): Fix dictionary with nil value issue. Changed…
Browse files Browse the repository at this point in the history
… parameter to SOGoPasswordRecoveryEnabled
  • Loading branch information
WoodySlum committed Oct 4, 2022
1 parent d5ad0dd commit c4dd695
Show file tree
Hide file tree
Showing 27 changed files with 30 additions and 28 deletions.
2 changes: 1 addition & 1 deletion Documentation/SOGoInstallationGuide.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ Default value is `YES`, or enabled.
authentication and global address books. Multiple sources can be
specified as an array of dictionaries.
|S |SOGoPasswordRecovery
|S |SOGoPasswordRecoveryEnabled
|Boolean enable password recovery with secret question or secondary e-mail. Only for database user source.
|S |SOGoPasswordRecoveryDomains
Expand Down
2 changes: 1 addition & 1 deletion SoObjects/SOGo/SOGoSystemDefaults.m
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,7 @@ - (int) maximumPictureSize

- (BOOL) isPasswordRecoveryEnabled
{
return [self boolForKey: @"SOGoPasswordRecovery"];
return [self boolForKey: @"SOGoPasswordRecoveryEnabled"];
}

- (NSArray *) passwordRecoveryDomains
Expand Down
6 changes: 4 additions & 2 deletions UI/MainUI/SOGoRootPage.m
Original file line number Diff line number Diff line change
Expand Up @@ -984,8 +984,10 @@ - (WOResponse *) passwordRecoveryEnabledAction
domainName = [[usernameComponents objectAtIndex: 1] lowercaseString];
}
}

result = [NSDictionary dictionaryWithObject: domainName forKey: @"domain"];

if (domainName) {
result = [NSDictionary dictionaryWithObject: domainName forKey: @"domain"];
}
}

passwordRecoveryDomains = [[SOGoSystemDefaults sharedSystemDefaults]
Expand Down
2 changes: 1 addition & 1 deletion UI/WebServerResources/css/styles.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion UI/WebServerResources/css/styles.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion UI/WebServerResources/js/Administration.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion UI/WebServerResources/js/Administration.services.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion UI/WebServerResources/js/Common.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion UI/WebServerResources/js/Common.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion UI/WebServerResources/js/Contacts.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion UI/WebServerResources/js/Contacts.services.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion UI/WebServerResources/js/Contacts.services.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit c4dd695

Please sign in to comment.