This commit is contained in:
salam committed 2025-10-15 18:48:48 +02:00
1 parent 60fa17f495
commit 5cab092aaf
1 file changed
+1 -11
@@ -18,17 +18,7 @@ class RequestPasswordReset extends BaseRequestPasswordReset
try { try {
$this->rateLimit(2); $this->rateLimit(2);
} catch (TooManyRequestsException $exception) { } catch (TooManyRequestsException $exception) {
Notification::make() $this->getRateLimitedNotification($exception)?->send();
->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();
return; return;
} }