diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2010-11-30 18:46:08 -0500 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2010-11-30 18:46:08 -0500 |
commit | 88ecfc5870a899a15bdaa00dd708725579abc7d4 (patch) | |
tree | 1e2ed00002ebc02d71d41abb10ce4504dd5ce3f3 /etc/inc | |
parent | 1ea78906088322a987990a9dfc98bc83c2792319 (diff) | |
download | pfsense-88ecfc5870a899a15bdaa00dd708725579abc7d4.zip pfsense-88ecfc5870a899a15bdaa00dd708725579abc7d4.tar.gz |
Reword auth error message to match ssh for the most part
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/auth.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc index 1214d17..2742226 100644 --- a/etc/inc/auth.inc +++ b/etc/inc/auth.inc @@ -1211,7 +1211,7 @@ function session_auth() { $_SESSION['Logged_In'] = "True"; $_SESSION['Username'] = $_POST['usernamefld']; $_SESSION['last_access'] = time(); - log_error("Successful login for user '{$_POST['usernamefld']}' from: {$_SERVER['REMOTE_ADDR']}"); + log_error("Successful login for user '{$_POST['usernamefld']}' host: {$_SERVER['REMOTE_ADDR']}"); $HTTP_SERVER_VARS['AUTH_USER'] = $_SESSION['Username']; if (isset($_POST['postafterlogin'])) return true; @@ -1224,7 +1224,8 @@ function session_auth() { } else { /* give the user an error message */ $_SESSION['Login_Error'] = "Username or Password incorrect"; - log_error("Login attempt with user: '{$_POST['usernamefld']}' from: '{$_SERVER['REMOTE_ADDR']}' failed."); + log_error("webConfigurator authentication error for '{$_POST['usernamefld']}' host: '{$_SERVER['REMOTE_ADDR']}'"); + if(isAjax()) { echo "showajaxmessage('{$_SESSION['Login_Error']}');"; return; |