mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-02 10:05:26 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user