fix(core): change password in user's matching source only
parent
e0b6e22fa2
commit
da366083e9
|
@ -433,15 +433,18 @@ static Class NSNullK;
|
|||
perr: (SOGoPasswordPolicyError *) perr
|
||||
{
|
||||
NSObject <SOGoSource> *sogoSource;
|
||||
NSEnumerator *authIDs;
|
||||
NSString *currentID;
|
||||
BOOL didChange;
|
||||
|
||||
*perr = -1;
|
||||
didChange = NO;
|
||||
|
||||
authIDs = [[self authenticationSourceIDsInDomain: domain] objectEnumerator];
|
||||
while (!didChange && (currentID = [authIDs nextObject]))
|
||||
NSDictionary *info = [self contactInfosForUserWithUIDorEmail: login
|
||||
inDomain: domain];
|
||||
|
||||
if (info)
|
||||
{
|
||||
currentID = [info objectForKey: @"SOGoSource"];
|
||||
sogoSource = [_sources objectForKey: currentID];
|
||||
didChange = [sogoSource changePasswordForLogin: login
|
||||
oldPassword: oldPassword
|
||||
|
|
Loading…
Reference in New Issue