mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-19 21:53:19 +00:00
Monotone-Parent: d2bd6bcda5a12e544ed133a4000f1101dc14908c
Monotone-Revision: 84bc6f895c1a0b4e4455df229813dc1774f0be43 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-09-06T22:19:05 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -203,10 +203,10 @@ static NSString *defaultModule = nil;
|
||||
- (id <WOActionResults>) logoffAction
|
||||
{
|
||||
WOResponse *response;
|
||||
NSEnumerator *cookies;
|
||||
WOCookie *cookie;
|
||||
SOGoWebAuthenticator *auth;
|
||||
id container;
|
||||
NSCalendarDate *date;
|
||||
|
||||
container = [[self clientObject] container];
|
||||
|
||||
@@ -214,11 +214,12 @@ static NSString *defaultModule = nil;
|
||||
[response setStatus: 302];
|
||||
[response setHeader: [container baseURLInContext: context]
|
||||
forKey: @"location"];
|
||||
cookies = [[response cookies] objectEnumerator];
|
||||
auth = [[self clientObject] authenticatorInContext: context];
|
||||
cookie = [WOCookie cookieWithName: [auth cookieNameInContext: context]
|
||||
value: @"logoff"];
|
||||
value: @"discard"];
|
||||
[cookie setPath: @"/"];
|
||||
date = [NSCalendarDate calendarDate];
|
||||
[cookie setExpires: [date yesterday]];
|
||||
[response addCookie: cookie];
|
||||
|
||||
return response;
|
||||
|
||||
Reference in New Issue
Block a user