From 5cab092aafaf92ace6720bff9a0eaf1dcdf02308 Mon Sep 17 00:00:00 2001 From: salam Date: Wed, 15 Oct 2025 18:48:48 +0200 Subject: [PATCH] wip --- app/Filament/Pages/Auth/RequestPasswordReset.php | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) 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; }