How to disable RequestPasswordReset but allow ResetPassword?
I would like to use the built-in ResetPassword class of Filament. However, I do not want my users to be able to request a password reset themselves. They should contact their admin for that, he can then generate a password request which gets sent to the user.
How would I achieve this in Filament? I tried something like this:
->passwordReset(requestAction: null, resetAction: ResetPassword::class)
Solution:Jump to solution
Easiest way would be create your own custom password reset.. unless you create a PR to filament core to include (optional) what you like
5 Replies
bump :)
Solution
Easiest way would be create your own custom password reset.. unless you create a PR to filament core to include (optional) what you like
Okay, I will build something myself then. If it is good enough, I'll try to submit a PR.
Yeah just copy the filament code and have an action on the users page tbh. Fairly simple
It is probably clear from the answers above, but if you come across this thread and are still confused, below is how I solved the problem.
- app/Http/Livewire/ResetPassword.php: Contents copied from
vendor/filament/filament/src/Pages/Auth/PasswordReset/ResetPassword.php
, do not forget to update the namespace
- app/Providers/AuthServiceProvider.php
- routes/web.php