Monotone-Parent: 4f58ba7ba8f5347cf5b339ec697f0ded2a38f41b

Monotone-Revision: 1ade254d62fcb6133186bc9896363a6fa7dc5f90

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2008-09-11T21:55:21
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Wolfgang Sourdeau 2008-09-11 21:55:21 +00:00
parent 2af02d005a
commit 3273f859c4
3 changed files with 15 additions and 1 deletions

View File

@ -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:".

View File

@ -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
response = [self responseWithStatus: 403];
{
[self logWithFormat: @"failed login for user '%@'", userName];
response = [self responseWithStatus: 403];
}
return response;
}

View File

@ -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]