Fixed mess regarding uid/realUID
This commit is contained in:
parent
c8995087d8
commit
4f303f8aa2
|
@ -197,8 +197,12 @@
|
||||||
// When the user is associated to a domain, the [SOGoUser login]
|
// When the user is associated to a domain, the [SOGoUser login]
|
||||||
// method returns the combination login@domain while
|
// method returns the combination login@domain while
|
||||||
// [SOGoUser loginInDomain] only returns the login.
|
// [SOGoUser loginInDomain] only returns the login.
|
||||||
uid = [NSString stringWithString: realUID];
|
r = [realUID rangeOfString: domain options: NSBackwardsSearch|NSCaseInsensitiveSearch];
|
||||||
realUID = [NSString stringWithFormat: @"%@@%@", realUID, domain];
|
|
||||||
|
if (r.location != NSNotFound)
|
||||||
|
uid = [realUID substringToIndex: r.location-1];
|
||||||
|
else
|
||||||
|
uid = [NSString stringWithString: realUID];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue