Update to logauthfailure

This commit is contained in:
Miguel Nogueira 2020-09-08 01:34:47 +01:00
parent e93abd2ab7
commit ac8b303e2c

View File

@ -27,7 +27,7 @@ class LogAuthenticationFailure
public function handle($event)
{
Log::alert('SECURITY (login): Detected failed authentication attempt!', [
'targetAccountID' => $event->user->id,
'targetAccountID' => $event->user->id ?? '(nonexistent user)',
'sourceIP' => request()->ip(),
'matchesAccountLastIP' => request()->ip() == $event->user->originalIP,
'sourceUserAgent' => request()->userAgent(),