Update Login.php

This commit is contained in:
Dan Harrin
2025-07-28 17:40:40 +01:00
parent 2579b3105e
commit 6e1a2890e8
+1 -1
View File
@@ -154,7 +154,7 @@ class Login extends SimplePage
*/
protected function fireFailedEvent(Guard $guard, ?Authenticatable $user, #[SensitiveParameter] array $credentials): void
{
event(app(Failed::class, ['guard' => $guard->name, 'user' => $user, 'credentials' => $credentials]));
event(app(Failed::class, ['guard' => property_exists($guard, 'name') ? $guard->name : '', 'user' => $user, 'credentials' => $credentials]));
}
protected function throwFailureValidationException(): never