mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-21 10:38:12 +00:00
(fix) don't add the domain if already in the uid
This commit is contained in:
1 parent
b93cbeee26
commit
aa623c5171
1 file changed
+1
-1
@@ -463,7 +463,7 @@
|
||||
if (!activeUserIsInDomain || ![uid isEqualToString: login])
|
||||
{
|
||||
jsonLine = [NSMutableArray arrayWithCapacity: 4];
|
||||
if ([domain length])
|
||||
if ([domain length] && [uid rangeOfString: @"@"].location == NSNotFound)
|
||||
uid = [NSString stringWithFormat: @"%@@%@", uid, domain];
|
||||
[jsonLine addObject: uid];
|
||||
[jsonLine addObject: [contact objectForKey: @"cn"]];
|
||||
|
||||
Reference in new issue
Block a user