In my Django application, I am using the PasswordResetForm to allow users to reset their passwords. However, I noticed that users with unusable passwords do not receive password reset emails. The get_users method in PasswordResetForm filters out these users.
The Django documentation states:
The get_users method in the PasswordResetForm also filters out users with an unusable password, so those users don’t get emails either. You’ll have to either assign some type of password to those users or override that method in the form to not filter out by that condition.
Additionally, I receive a "200 OK" response and see the log entry GET /password-reset/done/ HTTP/1.1" 200 6626, but the emails are not being sent.
How can I resolve this issue?Specifically, how can I either:
Assign a usable password to users who have an unusable password.Override the get_users method in PasswordResetForm to include users with unusable passwords.