]> git.mxchange.org Git - friendica.git/commitdiff
add IP address to failed login log message
authorfriendica <info@friendica.com>
Tue, 20 Mar 2012 04:58:21 +0000 (21:58 -0700)
committerfriendica <info@friendica.com>
Tue, 20 Mar 2012 04:58:21 +0000 (21:58 -0700)
include/auth.php

index 4e246e3541ed243102ae74b4a0206748dfecfb1a..835616a829551c44fabca06fbd4b4868b7c34b39 100755 (executable)
@@ -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());
                }