From ce3d55d2cc9ddafe2e76c0200c3a1a9dd74266ef Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Tue, 26 May 2015 11:08:30 -0400 Subject: [PATCH] (fix) do not rewrite the username when using the session from the db --- SoObjects/SOGo/SOGoSession.m | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/SoObjects/SOGo/SOGoSession.m b/SoObjects/SOGo/SOGoSession.m index 235ef371e..936877336 100644 --- a/SoObjects/SOGo/SOGoSession.m +++ b/SoObjects/SOGo/SOGoSession.m @@ -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; } }