aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-03-19 21:58:21 -0700
committerfriendica <info@friendica.com>2012-03-19 21:58:21 -0700
commit5a5aadb743e055530aa071dd3e47705a3bf5d728 (patch)
tree4a2b3979200fa9966e44bf4974e9276a20d22419
parentf7e380cdc62e91bbb4085a977cad922e9979980c (diff)
downloadvolse-hubzilla-5a5aadb743e055530aa071dd3e47705a3bf5d728.tar.gz
volse-hubzilla-5a5aadb743e055530aa071dd3e47705a3bf5d728.tar.bz2
volse-hubzilla-5a5aadb743e055530aa071dd3e47705a3bf5d728.zip
add IP address to failed login log message
-rwxr-xr-xinclude/auth.php3
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());
}