mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-22 23:02:43 +00:00
(fix) do not rewrite the username when using the session from the db
This commit is contained in:
@@ -261,9 +261,7 @@
|
||||
// The domain is probably appended to the username;
|
||||
// make sure it is defined as a domain in the configuration.
|
||||
*theDomain = [*theLogin substringFromIndex: (r.location + r.length)];
|
||||
if ([[sd domainIds] containsObject: *theDomain])
|
||||
*theLogin = [*theLogin substringToIndex: r.location];
|
||||
else
|
||||
if (![[sd domainIds] containsObject: *theDomain])
|
||||
*theDomain = nil;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user