Monotone-Parent: 4f58ba7ba8f5347cf5b339ec697f0ded2a38f41b

Monotone-Revision: 1ade254d62fcb6133186bc9896363a6fa7dc5f90

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2008-09-11T21:55:21
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau committed 2008-09-11 21:55:21 +00:00
1 parent 2af02d005a
commit 3273f859c4
3 files changed
+15 -1

No files matched your search

+5 -1
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;
}