mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-17 21:03:16 +00:00
whitespace fixes. tabkill
This commit is contained in:
@@ -74,7 +74,7 @@
|
||||
}
|
||||
|
||||
- (BOOL) checkLogin: (NSString *) _login
|
||||
password: (NSString *) _pwd
|
||||
password: (NSString *) _pwd
|
||||
{
|
||||
NSString *username, *password, *domain, *value;
|
||||
SOGoPasswordPolicyError perr;
|
||||
@@ -168,7 +168,7 @@
|
||||
perr: _perr
|
||||
expire: _expire
|
||||
grace: _grace
|
||||
useCache: _useCache];
|
||||
useCache: _useCache];
|
||||
|
||||
//[self logWithFormat: @"Checked login with ppolicy enabled: %d %d %d", *_perr, *_expire, *_grace];
|
||||
|
||||
@@ -283,17 +283,19 @@
|
||||
session = [SOGoCASSession CASSessionWithIdentifier: password
|
||||
fromProxy: NO];
|
||||
|
||||
// We must NOT assume the scheme exists
|
||||
scheme = [server scheme];
|
||||
// We must NOT assume the scheme exists
|
||||
scheme = [server scheme];
|
||||
|
||||
if (!scheme)
|
||||
scheme = @"imap";
|
||||
if (!scheme)
|
||||
scheme = @"imap";
|
||||
|
||||
service = [NSString stringWithFormat: @"%@://%@", scheme, [server host]];
|
||||
service = [NSString stringWithFormat: @"%@://%@", scheme, [server host]];
|
||||
|
||||
if (renew)
|
||||
[session invalidateTicketForService: service];
|
||||
|
||||
password = [session ticketForService: service];
|
||||
|
||||
if ([password length] || renew)
|
||||
[session updateCache];
|
||||
}
|
||||
@@ -322,8 +324,8 @@
|
||||
/* create SOGoUser */
|
||||
|
||||
- (SOGoUser *) userWithLogin: (NSString *) login
|
||||
andRoles: (NSArray *) roles
|
||||
inContext: (WOContext *) ctx
|
||||
andRoles: (NSArray *) roles
|
||||
inContext: (WOContext *) ctx
|
||||
{
|
||||
/* the actual factory method */
|
||||
return [SOGoUser userWithLogin: login roles: roles];
|
||||
@@ -339,7 +341,7 @@
|
||||
NSString *auth;
|
||||
|
||||
auth = [[context request]
|
||||
cookieValueForKey: [self cookieNameInContext:context]];
|
||||
cookieValueForKey: [self cookieNameInContext:context]];
|
||||
if ([auth isEqualToString: @"discard"])
|
||||
{
|
||||
[context setObject: [NSArray arrayWithObject: SoRole_Anonymous]
|
||||
@@ -353,8 +355,8 @@
|
||||
}
|
||||
|
||||
- (void) setupAuthFailResponse: (WOResponse *) response
|
||||
withReason: (NSString *) reason
|
||||
inContext: (WOContext *) context
|
||||
withReason: (NSString *) reason
|
||||
inContext: (WOContext *) context
|
||||
{
|
||||
WOComponent *page;
|
||||
WORequest *request;
|
||||
|
||||
Reference in New Issue
Block a user