wip
This commit is contained in:
1 parent
60fa17f495
commit
5cab092aaf
1 file changed
+1
-11
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user