Merge pull request #156 from Zentyal/jjgarcia/remove-not-needed-code

Remove not needed block in SoObjects/SOGo/SOGoUserManager.m
This commit is contained in:
Julio J. García Martín
2015-07-13 09:13:21 +02:00
+1 -9
View File
@@ -443,19 +443,11 @@ static Class NSNullK;
checkOK = NO;
if (*domain == nil)
{
sd = [SOGoSystemDefaults sharedSystemDefaults];
r = [login rangeOfString: @"@" options: NSBackwardsSearch];
if ([sd enableDomainBasedUID] && r.location != NSNotFound)
*domain = [login substringFromIndex: (r.location + r.length)];
}
authIDs = [[self authenticationSourceIDsInDomain: *domain] objectEnumerator];
while (!checkOK && (currentID = [authIDs nextObject]))
{
sogoSource = [_sources objectForKey: currentID];
checkOK = [sogoSource checkLogin: login
password: password
perr: perr