From f393c842d15ddf88d0b89ceaffc2b27a1e19595b Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Thu, 27 May 2010 16:26:52 +0200 Subject: [PATCH] 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. --- horde/login.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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( -- 2.11.0