How I can disable password reset? I need prevent resetting passwords on login page. How I can do it?
I tried do:
Auth::routes(['register' => false, 'password.request' => false, 'password.reset' => false]);
But not working. Password reset is working.
Change,
'password.reset' => false
To,
'reset' => false
If that doesn't work, in ForgotPasswordController
, you will see that a trait SendsPasswordResetEmails
is used, in that you will find the function showLinkRequestForm
which you can override:
public function showLinkRequestForm()
{
return view('auth.passwords.email');
}
and replace it with a redirect to go back, or a 404, or something else that you want.
Alternatively, you could override the routes.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With