From ddc2732b034ded03b4baea926245bc9193a52e29 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Fri, 15 Jan 2010 01:10:13 +0100 Subject: [PATCH] This is necessary for me to get transparent authentication working. It always throwed "No authentication available." otherwise. --- horde/login.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/horde/login.php b/horde/login.php index bb65650fe..eecc58c23 100644 --- a/horde/login.php +++ b/horde/login.php @@ -81,7 +81,7 @@ try { } catch (Horde_Exception $e) {} $app = Horde_Util::getFormData('app'); -$is_auth = Horde_Auth::getAuth(); +$is_auth = Horde_Auth::isAuthenticated(); /* This ensures index.php doesn't pick up the 'url' parameter. */ $horde_login_url = ''; @@ -98,7 +98,7 @@ $auth = ($app && $is_auth) : Horde_Auth::singleton($conf['auth']['driver']); /* Check to see if any authentication is available. */ -if (!$auth->hasCapability('authenticate')) { +if (!$is_auth && !$auth->hasCapability('authenticate')) { throw new Horde_Exception(_("No authentication available.")); } -- 2.11.0