From b195e590e4d48b95f1eba031cb3177eb6f4d683e Mon Sep 17 00:00:00 2001 From: Bas van Dinther Date: Tue, 17 Dec 2024 12:55:05 +0100 Subject: [PATCH] Fix password reset link (#67) * Fix password link * Fix styling * Fix PHPStan * Fix styling --------- Co-authored-by: Baspa --- src/Http/Livewire/Auth/Login.php | 3 +-- src/Pages/TwoFactor.php | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Http/Livewire/Auth/Login.php b/src/Http/Livewire/Auth/Login.php index a3449f4..c6c8176 100644 --- a/src/Http/Livewire/Auth/Login.php +++ b/src/Http/Livewire/Auth/Login.php @@ -162,8 +162,7 @@ protected function getPasswordFormComponent(): Component { return TextInput::make('password') ->label(__('filament-panels::pages/auth/login.form.password.label')) - ->hint(Filament::hasPasswordReset() ? new HtmlString(Blade::render(' {{ __(\'filament-panels::pages/auth/login.actions.request_password_reset.label\') }}')) : null) - ->password() + ->hint(Filament::hasPasswordReset() ? new HtmlString(Blade::render(' {{ __(\'filament-panels::pages/auth/login.actions.request_password_reset.label\') }}')) : null)->password() ->revealable(Filament::arePasswordsRevealable()) ->autocomplete('current-password') ->required() diff --git a/src/Pages/TwoFactor.php b/src/Pages/TwoFactor.php index ad95e06..392b7b4 100644 --- a/src/Pages/TwoFactor.php +++ b/src/Pages/TwoFactor.php @@ -12,8 +12,8 @@ use Illuminate\Contracts\Support\Htmlable; use Illuminate\Support\Collection; use Illuminate\Support\Facades\Auth; -use Illuminate\Validation\ValidationException; use Illuminate\Validation\Rule; +use Illuminate\Validation\ValidationException; use Laravel\Fortify\Actions\ConfirmTwoFactorAuthentication; use Laravel\Fortify\Actions\DisableTwoFactorAuthentication; use Laravel\Fortify\Actions\EnableTwoFactorAuthentication;