mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-07 12:57:14 +00:00
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:
1 parent
2af02d005a
commit
3273f859c4
3 files changed
+15
-1
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user