mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-07 09:25:09 +00:00
(fix) avoid broken redirects on sessions expiration
This commit is contained in:
@@ -466,8 +466,12 @@
|
||||
|
||||
- (NSString *) userIdentification
|
||||
{
|
||||
NSString *v;
|
||||
|
||||
/* The "identification" term is used in the human sense here. */
|
||||
return [[context activeUser] cn];
|
||||
v = [[context activeUser] cn];
|
||||
|
||||
return (v ? v : @"");
|
||||
}
|
||||
|
||||
- (NSString *) userEmail
|
||||
|
||||
@@ -364,6 +364,9 @@ static SoProduct *commonProduct = nil;
|
||||
|
||||
baseURL = [[self clientObject] baseURLInContext: context];
|
||||
|
||||
if (!baseURL)
|
||||
baseURL = @"/SOGo/so/";
|
||||
|
||||
if ([baseURL hasSuffix: [NSString stringWithFormat: @"%@/", [[self parent] modulePath]]])
|
||||
return baseURL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user