Avoid appending the domain if already present.

This commit is contained in:
Ludovic Marcotte
2013-04-09 11:35:53 -04:00
parent 84ba93fc0a
commit eec8c07d4f

View File

@@ -257,7 +257,7 @@
grace: &grace])
return nil;
if (domain)
if (domain && [login rangeOfString: @"@"].location == NSNotFound)
login = [NSString stringWithFormat: @"%@@%@", login, domain];
return login;