mirror of
https://github.com/friendica/friendica
synced 2024-11-13 01:02:53 +00:00
add IP address to failed login log message
This commit is contained in:
parent
f7e380cdc6
commit
5a5aadb743
1 changed files with 2 additions and 1 deletions
|
@ -104,6 +104,7 @@ else {
|
||||||
// NOTREACHED
|
// NOTREACHED
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if((x($_POST,'auth-params')) && $_POST['auth-params'] === 'login') {
|
if((x($_POST,'auth-params')) && $_POST['auth-params'] === 'login') {
|
||||||
|
|
||||||
$record = null;
|
$record = null;
|
||||||
|
@ -144,7 +145,7 @@ else {
|
||||||
}
|
}
|
||||||
|
|
||||||
if((! $record) || (! count($record))) {
|
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 );
|
notice( t('Login failed.') . EOL );
|
||||||
goaway(z_root());
|
goaway(z_root());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue