From ac8b303e2c612ed82ea5bba89a9245e5521bef50 Mon Sep 17 00:00:00 2001 From: Miguel N Date: Tue, 8 Sep 2020 01:34:47 +0100 Subject: [PATCH] Update to logauthfailure --- app/Listeners/LogAuthenticationFailure.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Listeners/LogAuthenticationFailure.php b/app/Listeners/LogAuthenticationFailure.php index 979c2e3..3ce94c7 100644 --- a/app/Listeners/LogAuthenticationFailure.php +++ b/app/Listeners/LogAuthenticationFailure.php @@ -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(),