From: friendica Date: Tue, 20 Mar 2012 04:58:21 +0000 (-0700) Subject: add IP address to failed login log message X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5a5aadb743e055530aa071dd3e47705a3bf5d728;p=friendica.git add IP address to failed login log message --- diff --git a/include/auth.php b/include/auth.php index 4e246e3541..835616a829 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()); }