summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/inc/auth.inc8
-rw-r--r--usr/local/www/headjs.php2
2 files changed, 9 insertions, 1 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;
+ }
}
}
}
diff --git a/usr/local/www/headjs.php b/usr/local/www/headjs.php
index 09b1b44..034daf0 100644
--- a/usr/local/www/headjs.php
+++ b/usr/local/www/headjs.php
@@ -82,7 +82,7 @@ function getHeadJS() {
var responseText = resp.responseText;
// debugging helper
- alert(responseText);
+ // alert(responseText);
if(responseText.indexOf('html') > 0) {
/* somehow we have been fed an html page! */
OpenPOWER on IntegriCloud