summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-11-18 23:35:27 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-11-18 23:35:27 +0000
commitbe23be5acb466b0b61814d67b52292d8aa5f0f75 (patch)
tree7c4d80d7d013cd50a25d5064ffd39800f95c6c5c /etc
parent950f0f9e08c6e6dd8dd6a4908d72acf41e6e2bdc (diff)
downloadpfsense-be23be5acb466b0b61814d67b52292d8aa5f0f75.zip
pfsense-be23be5acb466b0b61814d67b52292d8aa5f0f75.tar.gz
* Correctly report invalid password
* Correctly report invalid username * Correctly report 401 errors
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/auth.inc8
1 files changed, 8 insertions, 0 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc
index 26486e1..bdc6487 100644
--- a/etc/inc/auth.inc
+++ b/etc/inc/auth.inc
@@ -344,8 +344,16 @@ function session_auth($backing) {
/* give the user a more detailed error message */
if (isset($userindex[$_POST['usernamefld']])) {
$_SESSION['Login_Error'] = "Wrong password";
+ if(isAjax()) {
+ echo "showajaxmessage('Wrong password');";
+ return;
+ }
} else {
$_SESSION['Login_Error'] = "User does not exist";
+ if(isAjax()) {
+ echo "showajaxmessage('User does not exist');";
+ return;
+ }
}
}
}
OpenPOWER on IntegriCloud