From: Jan Schneider Date: Thu, 27 May 2010 14:26:52 +0000 (+0200) Subject: Unless I'm missing something, we don't want to require Horde authentication on X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=f393c842d15ddf88d0b89ceaffc2b27a1e19595b;p=horde.git Unless I'm missing something, we don't want to require Horde authentication on the login screen. If we do, and authentication fails, e.g. because we are redirected here from some other page because of session timeouts, IP changes etc., we would end up with an incomplete Horde session. --- diff --git a/horde/login.php b/horde/login.php index 87c2a0f17..535889293 100644 --- a/horde/login.php +++ b/horde/login.php @@ -81,7 +81,7 @@ function _getLogoutReasonString($code) * constructor. */ require_once dirname(__FILE__) . '/lib/Application.php'; try { - Horde_Registry::appInit('horde', array('authentication' => 'throw', 'nologintasks' => true)); + Horde_Registry::appInit('horde', array('authentication' => 'none', 'nologintasks' => true)); } catch (Horde_Exception $e) {} $app = Horde_Util::getFormData('app'); @@ -150,9 +150,7 @@ if ($error_reason) { $is_auth = null; } - $language = isset($prefs) - ? $prefs->getValue('language') - : Horde_Nls::select(); + $language = $prefs->getValue('language'); $entry = sprintf('User %s [%s] logged out of Horde', Horde_Auth::getAuth(), $_SERVER['REMOTE_ADDR']); Horde::logMessage($entry, 'NOTICE'); @@ -269,7 +267,7 @@ if (!empty($conf['auth']['alternate_login'])) { } /* Build the widget containing the available languages. */ - if (!$is_auth && isset($prefs) && !$prefs->isLocked('language')) { + if (!$is_auth && !$prefs->isLocked('language')) { $tmp = array(); foreach ($langs as $val) { $tmp[$val['val']] = array(