diff options
author | friendica <info@friendica.com> | 2012-03-19 21:58:21 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-03-19 21:58:21 -0700 |
commit | 5a5aadb743e055530aa071dd3e47705a3bf5d728 (patch) | |
tree | 4a2b3979200fa9966e44bf4974e9276a20d22419 | |
parent | f7e380cdc62e91bbb4085a977cad922e9979980c (diff) | |
download | volse-hubzilla-5a5aadb743e055530aa071dd3e47705a3bf5d728.tar.gz volse-hubzilla-5a5aadb743e055530aa071dd3e47705a3bf5d728.tar.bz2 volse-hubzilla-5a5aadb743e055530aa071dd3e47705a3bf5d728.zip |
add IP address to failed login log message
-rwxr-xr-x | include/auth.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/auth.php b/include/auth.php index 4e246e354..835616a82 100755 --- a/include/auth.php +++ b/include/auth.php @@ -104,6 +104,7 @@ else { // NOTREACHED } } + if((x($_POST,'auth-params')) && $_POST['auth-params'] === 'login') { $record = null; @@ -144,7 +145,7 @@ else { } if((! $record) || (! count($record))) { - logger('authenticate: failed login attempt: ' . notags(trim($_POST['username']))); + logger('authenticate: failed login attempt: ' . notags(trim($_POST['username'])) . ' from IP ' . $_SERVER['REMOTE_ADDR']); notice( t('Login failed.') . EOL ); goaway(z_root()); } |