mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-16 08:57:12 +00:00
(fix) Session fix when SOGoEnableDomainBasedUID is enabled but logins are domain-less
This commit is contained in:
1 parent
525d1ad80f
commit
b80d8dbb06
3 files changed
+12
-7
No files matched your search
@@ -778,7 +778,10 @@ static Class NSNullK;
|
||||
NSRange r;
|
||||
|
||||
r = [theUID rangeOfString: [NSString stringWithFormat: @"@%@", theDomain]];
|
||||
theUID = [theUID substringToIndex: r.location];
|
||||
|
||||
// We check if the range is ok here since we could be using DomainLessLogin
|
||||
if (r.location != NSNotFound)
|
||||
theUID = [theUID substringToIndex: r.location];
|
||||
}
|
||||
|
||||
sogoSources = [[self authenticationSourceIDsInDomain: theDomain] objectEnumerator];
|
||||
|
||||
Reference in new issue
Block a user