Revert "Fixed mess regarding uid/realUID"

This reverts commit 4f303f8aa2.
This commit is contained in:
Julio García
2015-06-02 12:24:56 +02:00
parent 90e11d76f6
commit 96d88de564
+2 -6
View File
@@ -197,12 +197,8 @@
// When the user is associated to a domain, the [SOGoUser login]
// method returns the combination login@domain while
// [SOGoUser loginInDomain] only returns the login.
r = [realUID rangeOfString: domain options: NSBackwardsSearch|NSCaseInsensitiveSearch];
if (r.location != NSNotFound)
uid = [realUID substringToIndex: r.location-1];
else
uid = [NSString stringWithString: realUID];
uid = [NSString stringWithString: realUID];
realUID = [NSString stringWithFormat: @"%@@%@", realUID, domain];
}
}