From bc910165aeeb66920abb1e3c8ac7d5c03f369243 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Fri, 22 Jun 2007 19:54:05 +0000 Subject: [PATCH] Monotone-Parent: 0500c2697b10470788d9a9fc3204a2b0df84dc8d Monotone-Revision: 33615962cafecd784c10c3fed5d13a2fa3ee46b0 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-06-22T19:54:05 Monotone-Branch: ca.inverse.sogo --- SoObjects/SOGo/SOGoAuthenticator.m | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/SoObjects/SOGo/SOGoAuthenticator.m b/SoObjects/SOGo/SOGoAuthenticator.m index 0c8d5c0a8..fa7cad377 100644 --- a/SoObjects/SOGo/SOGoAuthenticator.m +++ b/SoObjects/SOGo/SOGoAuthenticator.m @@ -47,13 +47,11 @@ - (id) init { - NSUserDefaults *ud; - if ((self = [super init])) { - ud = [NSUserDefaults standardUserDefaults]; - - authMethod = [[ud stringForKey:@"AuthentificationMethod"] retain]; + authMethod = [[NSUserDefaults standardUserDefaults] + stringForKey: @"AuthentificationMethod"]; + [authMethod retain]; } return self; @@ -90,7 +88,7 @@ NSArray *creds; password = nil; - auth = [[context request] headerForKey:@"authorization"]; + auth = [[context request] headerForKey: @"authorization"]; if (auth) { creds = [self parseCredentials: auth];