mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-06-02 00:49:45 +00:00
Revert "Revert "Fixed mess regarding uid/realUID""
This reverts commit 96d88de564.
This commit is contained in:
@@ -197,8 +197,12 @@
|
||||
// When the user is associated to a domain, the [SOGoUser login]
|
||||
// method returns the combination login@domain while
|
||||
// [SOGoUser loginInDomain] only returns the login.
|
||||
uid = [NSString stringWithString: realUID];
|
||||
realUID = [NSString stringWithFormat: @"%@@%@", realUID, domain];
|
||||
r = [realUID rangeOfString: domain options: NSBackwardsSearch|NSCaseInsensitiveSearch];
|
||||
|
||||
if (r.location != NSNotFound)
|
||||
uid = [realUID substringToIndex: r.location-1];
|
||||
else
|
||||
uid = [NSString stringWithString: realUID];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user