From: Janusz Dobrowolski Date: Sun, 20 Sep 2009 16:32:42 +0000 (+0000) Subject: Fixed 'bad password' info screen to be usable also in non-js mode. X-Git-Tag: v2.4.2~19^2~1222 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=50c10c8d64132ff5c269b23e62693db985dfe3f8;p=fa-stable.git Fixed 'bad password' info screen to be usable also in non-js mode. --- diff --git a/includes/session.inc b/includes/session.inc index d6fc4a7f..c9e0becb 100644 --- a/includes/session.inc +++ b/includes/session.inc @@ -33,12 +33,14 @@ function kill_login() function login_fail() { + global $path_to_root; + header("HTTP/1.1 401 Authorization Required"); echo "


" . _("Incorrect Password") . "

"; echo "" . _("The user and password combination is not valid for the system.") . "

"; echo _("If you are not an authorized user, please contact your system administrator to obtain an account to enable you to use the system."); - echo "
" . _("Back") . ""; + echo "
" . _("Try again") . ""; echo "
"; kill_login();