mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-10 02:45:08 +00:00
Monotone-Parent: 8d1d44754257c773dc6882bb69d2da203650f3cf
Monotone-Revision: 5a720314ac446bf86e127d6d6e938b844aab7441 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-01-12T23:22:04 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
2007-01-12 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* SoObjects/SOGo/SOGoAuthenticator.m ([SOGoAuthenticator
|
||||
-checkLogin:_loginpassword:_pwd]): authorize special "freebusy"
|
||||
user with password "freebusy".
|
||||
|
||||
* SoObjects/Appointments/SOGoFreeBusyObject.m ([SOGoFreeBusyObject
|
||||
-contentAsString]): the default timerange is now 14 days before
|
||||
currentday and 1 month after.
|
||||
|
||||
@@ -72,20 +72,11 @@ static SOGoAuthenticator *auth = nil;
|
||||
- (BOOL) checkLogin: (NSString *) _login
|
||||
password: (NSString *) _pwd
|
||||
{
|
||||
BOOL result;
|
||||
|
||||
// return YES;
|
||||
if ([authMethod isEqualToString: @"LDAP"])
|
||||
result = [self LDAPCheckLogin: _login password: _pwd];
|
||||
else
|
||||
{
|
||||
if ([_login length] == 0)
|
||||
result = NO;
|
||||
else
|
||||
result = YES;
|
||||
}
|
||||
|
||||
return result;
|
||||
return (([_login isEqualToString: @"freebusy"]
|
||||
&& [_pwd isEqualToString: @"freebusy"])
|
||||
|| ([authMethod isEqualToString: @"LDAP"]
|
||||
&& [self LDAPCheckLogin: _login password: _pwd])
|
||||
|| [_login length] > 0);
|
||||
}
|
||||
|
||||
- (BOOL) LDAPCheckLogin: (NSString *) _login
|
||||
|
||||
Reference in New Issue
Block a user