See ChangeLog.

Monotone-Parent: 8c58bbcc380816930dac5d8da2d1d682049a6349
Monotone-Revision: b4900cbcd7c48cfd36bb5a262eec357e3ac1033a

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2011-12-09T16:33:43
maint-2.0.2
Francis Lachapelle 2011-12-09 16:33:43 +00:00
parent bb5cf04e7e
commit d06d406866
2 changed files with 16 additions and 7 deletions

View File

@ -1,9 +1,12 @@
2011-12-09 Francis Lachapelle <flachapelle@inverse.ca>
* UI/MainUI/SOGoRootPage.m (_cookieWithUsername:): the SOGoLogin
cookie now expires in one month.
2011-12-09 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* UI/SOGoUI/UIxComponent.m (-isCalendarEnabled)
(-isContactsEnabled, -isMailEnabled, -isPreferencesEnabled): new
accessors.
(-userHasCalendarAccess, -userHasMailAccess): moved from UIxPageFrame.
* UI/SOGoUI/UIxComponent.m (-userHasCalendarAccess)
(-userHasMailAccess): moved from UIxPageFrame.
* UI/Common/UIxToolbar.m (-cssClasses): new accessor that
generates the CSS classes dynamically depending on the button

View File

@ -147,17 +147,23 @@
NSCalendarDate *date;
appName = [[context request] applicationName];
date = [NSCalendarDate calendarDate];
[date setTimeZone: [NSTimeZone timeZoneWithAbbreviation: @"GMT"]];
if (username)
{
// Cookie expires in one month
loginCookie = [WOCookie cookieWithName: @"SOGoLogin"
value: [username stringByEncodingBase64]];
value: [username stringByEncodingBase64]
path: nil
domain: nil
expires: [date dateByAddingYears:0 months:1 days:0
hours:0 minutes:0 seconds:0]
isSecure: NO];
}
else
{
loginCookie = [WOCookie cookieWithName: @"SOGoLogin"
value: nil];
date = [NSCalendarDate calendarDate];
[date setTimeZone: [NSTimeZone timeZoneWithAbbreviation: @"GMT"]];
[loginCookie setExpires: [date yesterday]];
}