summaryrefslogtreecommitdiffstats
path: root/etc/inc/authgui.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-11-18 23:25:21 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-11-18 23:25:21 +0000
commit950f0f9e08c6e6dd8dd6a4908d72acf41e6e2bdc (patch)
treeb48d1e73096435b47ae7a63b6b7c20aaf2c4e608 /etc/inc/authgui.inc
parentc9a4b3f267f0b216c807ba26fb6bab0b57f1bb86 (diff)
downloadpfsense-950f0f9e08c6e6dd8dd6a4908d72acf41e6e2bdc.zip
pfsense-950f0f9e08c6e6dd8dd6a4908d72acf41e6e2bdc.tar.gz
Correctly show 401 errors.
Diffstat (limited to 'etc/inc/authgui.inc')
-rw-r--r--etc/inc/authgui.inc9
1 files changed, 8 insertions, 1 deletions
diff --git a/etc/inc/authgui.inc b/etc/inc/authgui.inc
index 956e936..36a7870 100644
--- a/etc/inc/authgui.inc
+++ b/etc/inc/authgui.inc
@@ -146,6 +146,13 @@ function display_error_form($http_code, $desc) {
global $config, $g;
$g['theme'] = $config['theme'];
+ logout_session();
+
+ if(isAjax()) {
+ echo "Error: {$http_code} Description: {$desc}";
+ return;
+ }
+
$htmlstr = <<<EOD
<html>
<head>
@@ -312,4 +319,4 @@ function display_login_form() {
<?php
} // end function
-?>
+?> \ No newline at end of file
OpenPOWER on IntegriCloud