This guide explains how to remove the "Forgot Password" functionality. After removal, users will need to contact an administrator to reset their password.
In Pages/Account/Login.cshtml, delete the forgot password link:
<!-- DELETE this line: -->
<p>
<a asp-page="./ForgotPassword">Forgot your password?</a>
</p>
Delete these files from Pages/Account/:
ForgotPassword.cshtml and .cshtml.csForgotPasswordConfirmation.cshtml and .cshtml.csResetPassword.cshtml and .cshtml.csResetPasswordConfirmation.cshtml and .cshtml.csDelete wwwroot/help/user/password-reset.htm
In wwwroot/help/default.htm, remove the password reset link from the user help section.
Verify that the admin Edit User page (Pages/Admin/Users/Edit.cshtml)
includes the ability to set a new password for users. This becomes the only way
to reset forgotten passwords.
Instead of removing password reset entirely, you could modify it to only work for admin-initiated resets:
After removal, verify:
/Account/ForgotPassword returns 404