From e95a4294b71d478549400c58bae486134325c664 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Wed, 10 Mar 2010 03:04:14 -0700 Subject: [PATCH] Simplify --- imp/lib/Auth.php | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/imp/lib/Auth.php b/imp/lib/Auth.php index 4fe07b94f..6c2ad9710 100644 --- a/imp/lib/Auth.php +++ b/imp/lib/Auth.php @@ -95,20 +95,14 @@ class IMP_Auth if (!isset($credentials['server'])) { $credentials['server'] = self::getAutoLoginServer(); } - try { - self::_createSession($auth_ob->getCredential()); - return true; - } catch (Horde_Auth_Exception $e) { + } else { + /* Attempt hordeauth authentication. */ + $credentials = self::_canAutoLogin(); + if ($credentials === false) { return false; } } - /* Attempt hordeauth authentication. */ - $credentials = self::_canAutoLogin(); - if ($credentials === false) { - return false; - } - try { self::_createSession($credentials); return true; -- 2.11.0