Skip to content

Commit

Permalink
Avoid appending the domain if already present.
Browse files Browse the repository at this point in the history
  • Loading branch information
extrafu committed Apr 9, 2013
1 parent 84ba93f commit eec8c07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SoObjects/SOGo/SOGoWebAuthenticator.m
Expand Up @@ -257,7 +257,7 @@ - (NSString *) checkCredentials: (NSString *)_creds
grace: &grace])
return nil;

if (domain)
if (domain && [login rangeOfString: @"@"].location == NSNotFound)
login = [NSString stringWithFormat: @"%@@%@", login, domain];

return login;
Expand Down

0 comments on commit eec8c07

Please sign in to comment.