Skip to content

Commit

Permalink
Fix password link
Browse files Browse the repository at this point in the history
  • Loading branch information
Baspa committed Dec 17, 2024
1 parent 7647ad5 commit d45b9b4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Http/Livewire/Auth/Login.php
Original file line number Diff line number Diff line change
Expand Up @@ -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('<x-filament::link href="/forgot-password"> {{ __(\'filament-panels::pages/auth/login.actions.request_password_reset.label\') }}</x-filament::link>')) : null)
->password()
->hint(filament()->hasPasswordReset() ? new HtmlString(Blade::render('<x-filament::link :href="filament()->getRequestPasswordResetUrl()" tabindex="3"> {{ __(\'filament-panels::pages/auth/login.actions.request_password_reset.label\') }}</x-filament::link>')) : null)->password()

Check failure on line 165 in src/Http/Livewire/Auth/Login.php

View workflow job for this annotation

GitHub Actions / phpstan

Call to an undefined method Filament\Contracts\Plugin|Filament\FilamentManager::hasPasswordReset().
->revealable(Filament::arePasswordsRevealable())
->autocomplete('current-password')
->required()
Expand All @@ -186,4 +185,4 @@ protected function validateCredentials(array $credentials): bool

return $user && $provider->validateCredentials($user, $credentials);
}
}
}

0 comments on commit d45b9b4

Please sign in to comment.