diff --git a/app/Filament/Pages/Auth/RequestPasswordReset.php b/app/Filament/Pages/Auth/RequestPasswordReset.php index b185bf1..1df5799 100644 --- a/app/Filament/Pages/Auth/RequestPasswordReset.php +++ b/app/Filament/Pages/Auth/RequestPasswordReset.php @@ -18,17 +18,7 @@ class RequestPasswordReset extends BaseRequestPasswordReset try { $this->rateLimit(2); } catch (TooManyRequestsException $exception) { - Notification::make() - ->title(__('filament-panels::pages/auth/password-reset/request-password-reset.notifications.throttled.title', [ - 'seconds' => $exception->secondsUntilAvailable, - 'minutes' => ceil($exception->secondsUntilAvailable / 60), - ])) - ->body(array_key_exists('body', __('filament-panels::pages/auth/password-reset/request-password-reset.notifications.throttled') ?: []) ? __('filament-panels::pages/auth/password-reset/request-password-reset.notifications.throttled.body', [ - 'seconds' => $exception->secondsUntilAvailable, - 'minutes' => ceil($exception->secondsUntilAvailable / 60), - ]) : null) - ->danger() - ->send(); + $this->getRateLimitedNotification($exception)?->send(); return; }