Monotone-Parent: 731b884e08c6de775b61ebcbaaa80856806dd4f0

Monotone-Revision: afb936940418b75e98e7e6cf8708708932b6179f

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-09-04T15:02:03
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2007-09-04 15:02:03 +00:00
parent fe91698a13
commit 2c3a717016
2 changed files with 32 additions and 2 deletions
+5
View File
@@ -1,3 +1,8 @@
2007-09-04 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* UI/MainUI/SOGoUserHomePage.m ([SOGoUserHomePage -logoffAction]):
new method that resets the authentification cookie.
2007-08-29 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/SOGo/LDAPSource.m ([LDAPSource
+27 -2
View File
@@ -26,14 +26,16 @@
#import <Foundation/NSURL.h>
#import <Foundation/NSUserDefaults.h>
#import <Foundation/NSValue.h>
#import <NGObjWeb/WOCookie.h>
#import <NGObjWeb/WORequest.h>
#import <NGObjWeb/WOResponse.h>
#import <NGExtensions/NSCalendarDate+misc.h>
#import <NGExtensions/NSObject+Logs.h>
#import <Appointments/SOGoFreeBusyObject.h>
#import <SOGo/SOGoUser.h>
#import <SOGo/NSCalendarDate+SOGo.h>
#import <SoObjects/SOGo/SOGoAuthenticator.h>
#import <SoObjects/SOGo/SOGoUser.h>
#import <SoObjects/SOGo/NSCalendarDate+SOGo.h>
#import <SOGoUI/UIxComponent.h>
static NSString *defaultModule = nil;
@@ -198,4 +200,27 @@ static NSString *defaultModule = nil;
return response;
}
- (id <WOActionResults>) logoffAction
{
WOResponse *response;
NSEnumerator *cookies;
WOCookie *cookie;
SOGoAuthenticator *auth;
id container;
container = [[self clientObject] container];
response = [context response];
[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"];
[response addCookie: cookie];
return response;
}
@end