Monotone-Parent: 4f58ba7ba8f5347cf5b339ec697f0ded2a38f41b
Monotone-Revision: 1ade254d62fcb6133186bc9896363a6fa7dc5f90 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2008-09-11T21:55:21 Monotone-Branch: ca.inverse.sogomaint-2.0.2
parent
2af02d005a
commit
3273f859c4
|
@ -1,5 +1,11 @@
|
|||
2008-09-11 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* UI/MainUI/SOGoUserHomePage.m ([SOGoUserHomePage -logoffAction]):
|
||||
log the username performing the logoff operation.
|
||||
|
||||
* UI/MainUI/SOGoRootPage.m ([SOGoRootPage -connectAction]): log
|
||||
success information about current attempt.
|
||||
|
||||
* SoObjects/SOGo/SOGoObject.m ([SOGoObject
|
||||
-lookupName:lookupNameinContext:localContextacquire:acquire]): do
|
||||
not use the object returned by "bindToObject:inContext:".
|
||||
|
|
|
@ -70,6 +70,7 @@
|
|||
password = [request formValueForKey: @"password"];
|
||||
if ([auth checkLogin: userName password: password])
|
||||
{
|
||||
[self logWithFormat: @"successful login for user '%@'", userName];
|
||||
response = [self responseWith204];
|
||||
cookieString = [NSString stringWithFormat: @"%@:%@",
|
||||
userName, password];
|
||||
|
@ -81,7 +82,10 @@
|
|||
[response addCookie: authCookie];
|
||||
}
|
||||
else
|
||||
{
|
||||
[self logWithFormat: @"failed login for user '%@'", userName];
|
||||
response = [self responseWithStatus: 403];
|
||||
}
|
||||
|
||||
return response;
|
||||
}
|
||||
|
|
|
@ -213,9 +213,13 @@ static NSString *defaultModule = nil;
|
|||
SOGoWebAuthenticator *auth;
|
||||
id container;
|
||||
NSCalendarDate *date;
|
||||
NSString *userName;
|
||||
|
||||
container = [[self clientObject] container];
|
||||
|
||||
userName = [[context activeUser] login];
|
||||
[self logWithFormat: @"user '%@' logged off", userName];
|
||||
|
||||
response = [context response];
|
||||
[response setStatus: 302];
|
||||
[response setHeader: [container baseURLInContext: context]
|
||||
|
|
Loading…
Reference in New Issue