diff --git a/login.php b/login.php index a1ec62245804fe7a2414c6f53516935a671b8c26..a08c83a010f5828acbf9015f534a01e6361626c3 100644 --- a/login.php +++ b/login.php @@ -124,8 +124,7 @@ if (!$nav) { } // Browsers shouldn't suggest saving that username/password -Http::response(401); -header('WWW-Authenticate: html-form id=clientLogin'); +Http::response(422); require CLIENTINC_DIR.'header.inc.php'; require CLIENTINC_DIR.$inc; diff --git a/scp/login.php b/scp/login.php index f0da8319ec629b27fc75b1e08b00a5c5fc1f239c..34bbcc22a02321af5a8041b1c85f9e5b002492fd 100644 --- a/scp/login.php +++ b/scp/login.php @@ -71,8 +71,7 @@ elseif (!$thisstaff || !($thisstaff->getId() || $thisstaff->isValid())) { } // Browsers shouldn't suggest saving that username/password -Http::response(401); -header('WWW-Authenticate: html-form id=login'); +Http::response(422); define("OSTSCPINC",TRUE); //Make includes happy! include_once(INCLUDE_DIR.'staff/login.tpl.php');