(fix) do not rewrite the username when using the session from the db

This commit is contained in:
Ludovic Marcotte
2015-05-26 11:08:30 -04:00
parent b43c3f6d98
commit ce3d55d2cc

View File

@@ -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;
}
}