Skip to content
Snippets Groups Projects
Commit 772d5c59 authored by Jared Hancock's avatar Jared Hancock
Browse files

login: Fix error page in IE on failed login attempt

parent 4b12d549
No related branches found
No related tags found
No related merge requests found
...@@ -124,8 +124,7 @@ if (!$nav) { ...@@ -124,8 +124,7 @@ if (!$nav) {
} }
// Browsers shouldn't suggest saving that username/password // Browsers shouldn't suggest saving that username/password
Http::response(401); Http::response(422);
header('WWW-Authenticate: html-form id=clientLogin');
require CLIENTINC_DIR.'header.inc.php'; require CLIENTINC_DIR.'header.inc.php';
require CLIENTINC_DIR.$inc; require CLIENTINC_DIR.$inc;
......
...@@ -71,8 +71,7 @@ elseif (!$thisstaff || !($thisstaff->getId() || $thisstaff->isValid())) { ...@@ -71,8 +71,7 @@ elseif (!$thisstaff || !($thisstaff->getId() || $thisstaff->isValid())) {
} }
// Browsers shouldn't suggest saving that username/password // Browsers shouldn't suggest saving that username/password
Http::response(401); Http::response(422);
header('WWW-Authenticate: html-form id=login');
define("OSTSCPINC",TRUE); //Make includes happy! define("OSTSCPINC",TRUE); //Make includes happy!
include_once(INCLUDE_DIR.'staff/login.tpl.php'); include_once(INCLUDE_DIR.'staff/login.tpl.php');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment