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

pull/87/head
Ludovic Marcotte 2015-05-26 11:08:30 -04:00
parent b43c3f6d98
commit ce3d55d2cc
1 changed files with 1 additions and 3 deletions

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