Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 1 addition & 13 deletions Modules/Core/Filament/Pages/Auth/Login.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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()
Expand All @@ -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')
Expand Down
Loading