Skip to content

Commit

Permalink
login: Fix error page in IE on failed login attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
Jared Hancock committed Aug 6, 2015
1 parent 4b12d54 commit 772d5c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions login.php
Expand Up @@ -124,8 +124,7 @@
}

// 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;
Expand Down
3 changes: 1 addition & 2 deletions scp/login.php
Expand Up @@ -71,8 +71,7 @@
}

// 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');
Expand Down

0 comments on commit 772d5c5

Please sign in to comment.