From 959a058ee50f80ceaaedfdff4fa22288cb5cd6de Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sat, 1 Feb 2014 15:32:24 +0000 Subject: [PATCH] fixed missing main config --- lam/templates/login.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lam/templates/login.php b/lam/templates/login.php index 7b7b186e..50522777 100644 --- a/lam/templates/login.php +++ b/lam/templates/login.php @@ -545,7 +545,7 @@ if(!empty($_POST['checklogin'])) { if($_POST['passwd'] == "") { logNewMessage(LOG_DEBUG, "Empty password for login"); $error_message = _("Empty password submitted. Please try again."); - display_LoginPage($_SESSION['config']); // Empty password submitted. Return to login page. + display_LoginPage($_SESSION['config'], $_SESSION["cfgMain"]); // Empty password submitted. Return to login page. exit(); } if (get_magic_quotes_gpc() == 1) { @@ -606,7 +606,7 @@ if(!empty($_POST['checklogin'])) { $error_message = $searchError; logNewMessage(LOG_ERR, 'User ' . $username . ' (' . $clientSource . ') failed to log in. ' . $searchError . ''); $searchLDAP->close(); - display_LoginPage($_SESSION['config']); + display_LoginPage($_SESSION['config'], $_SESSION["cfgMain"]); exit(); } $searchLDAP->close(); @@ -646,7 +646,7 @@ if(!empty($_POST['checklogin'])) { $error_message = _("LDAP error, server says:") . "\n
($result) " . ldap_err2str($result); logNewMessage(LOG_ERR, 'User ' . $username . ' (' . $clientSource . ') failed to log in (LDAP error: ' . ldap_err2str($result) . ').'); } - display_LoginPage($_SESSION['config']); + display_LoginPage($_SESSION['config'], $_SESSION["cfgMain"]); exit(); } }