From ca44a37cad5e905e3a76b6ce862de6ec5d3bcb06 Mon Sep 17 00:00:00 2001 From: Steve Beaver Date: Wed, 30 Aug 2017 08:14:36 -0400 Subject: Restore bad username or password message --- src/etc/inc/auth.inc | 2 +- src/etc/inc/authgui.inc | 16 +++++++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) (limited to 'src/etc') diff --git a/src/etc/inc/auth.inc b/src/etc/inc/auth.inc index ec76e1d..aa658f3 100644 --- a/src/etc/inc/auth.inc +++ b/src/etc/inc/auth.inc @@ -1815,7 +1815,7 @@ function session_auth() { exit; } else { /* give the user an error message */ - $_SESSION['Login_Error'] = "Username or Password incorrect"; + $_SESSION['Login_Error'] = gettext("Username or Password incorrect"); log_auth("webConfigurator authentication error for '{$_POST['usernamefld']}' from {$_SERVER['REMOTE_ADDR']}"); if (isAjax()) { echo "showajaxmessage('{$_SESSION['Login_Error']}');"; diff --git a/src/etc/inc/authgui.inc b/src/etc/inc/authgui.inc index 934ff41..20d4039 100644 --- a/src/etc/inc/authgui.inc +++ b/src/etc/inc/authgui.inc @@ -34,7 +34,9 @@ if (!session_auth()) { display_login_form(); exit; } + phpsession_begin(); + /* * Once here, the user has authenticated with the web server. * We give them access only to the appropriate pages based on @@ -312,6 +314,7 @@ function display_login_form() {
+
@@ -333,7 +336,18 @@ function display_login_form() {
-
+ + +
+" . $_SESSION['Login_Error'] . ""); + } +?> +
+ + +

-- cgit v1.1