mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-05 20:10:33 +00:00
feat(password-recovery): Add password recovery with secret question or secondary email
This commit is contained in:
@@ -708,14 +708,20 @@ groupObjectClasses: (NSArray *) newGroupObjectClasses
|
||||
return didChange;
|
||||
}
|
||||
|
||||
//
|
||||
//
|
||||
//
|
||||
/**
|
||||
* Change a user's password.
|
||||
* @param login the user's login name.
|
||||
* @param oldPassword the previous password.
|
||||
* @param newPassword the new password.
|
||||
* @param perr will be set if the new password is not conform to the policy.
|
||||
* @param passwordRecovery YES of this is password recovery, NO otherwise. If password recovery is set, old password won't be checked
|
||||
* @return YES if the password was successfully changed.
|
||||
*/
|
||||
- (BOOL) changePasswordForLogin: (NSString *) login
|
||||
oldPassword: (NSString *) oldPassword
|
||||
newPassword: (NSString *) newPassword
|
||||
passwordRecovery: (BOOL) passwordRecovery
|
||||
perr: (SOGoPasswordPolicyError *) perr
|
||||
|
||||
{
|
||||
NGLdapConnection *bindConnection;
|
||||
NSString *userDN;
|
||||
|
||||
Reference in New Issue
Block a user