diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-11-18 23:35:27 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-11-18 23:35:27 +0000 |
commit | be23be5acb466b0b61814d67b52292d8aa5f0f75 (patch) | |
tree | 7c4d80d7d013cd50a25d5064ffd39800f95c6c5c /etc/inc/auth.inc | |
parent | 950f0f9e08c6e6dd8dd6a4908d72acf41e6e2bdc (diff) | |
download | pfsense-be23be5acb466b0b61814d67b52292d8aa5f0f75.zip pfsense-be23be5acb466b0b61814d67b52292d8aa5f0f75.tar.gz |
* Correctly report invalid password
* Correctly report invalid username
* Correctly report 401 errors
Diffstat (limited to 'etc/inc/auth.inc')
-rw-r--r-- | etc/inc/auth.inc | 8 |
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; + } } } } |