diff --git a/Modules/Core/Filament/Pages/Auth/Login.php b/Modules/Core/Filament/Pages/Auth/Login.php index 874575831..59852181c 100644 --- a/Modules/Core/Filament/Pages/Auth/Login.php +++ b/Modules/Core/Filament/Pages/Auth/Login.php @@ -17,17 +17,7 @@ public function authenticate(): ?LoginResponse try { $this->rateLimit(5); } catch (TooManyRequestsException $exception) { - Notification::make() - ->title(trans('filament-panels::pages/auth/login.notifications.throttled.title', [ - 'seconds' => $exception->secondsUntilAvailable, - 'minutes' => ceil($exception->secondsUntilAvailable / 60), - ])) - ->body(array_key_exists('body', trans('filament-panels::pages/auth/login.notifications.throttled') ?: []) ? trans('filament-panels::pages/auth/login.notifications.throttled.body', [ - 'seconds' => $exception->secondsUntilAvailable, - 'minutes' => ceil($exception->secondsUntilAvailable / 60), - ]) : null) - ->danger() - ->send(); + $this->getRateLimitedNotification($exception)?->send(); return null; } @@ -62,7 +52,6 @@ public function authenticate(): ?LoginResponse protected function getEmailFormComponent(): Component { return TextInput::make('email') - ->label(trans('filament-panels::pages/auth/login.form.email.label')) ->email() ->required() ->autocomplete() @@ -73,7 +62,6 @@ protected function getEmailFormComponent(): Component protected function getPasswordFormComponent(): Component { return TextInput::make('password') - ->label(trans('filament-panels::pages/auth/login.form.password.label')) ->password() ->revealable(filament()->arePasswordsRevealable()) ->autocomplete('current-password')