From 772d5c59a976ee9103448a9075c23d6a99afb34e Mon Sep 17 00:00:00 2001
From: Jared Hancock <jared@osticket.com>
Date: Wed, 5 Aug 2015 16:47:58 -0500
Subject: [PATCH] login: Fix error page in IE on failed login attempt

---
 login.php     | 3 +--
 scp/login.php | 3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/login.php b/login.php
index a1ec62245..a08c83a01 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 f0da8319e..34bbcc22a 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');
-- 
GitLab