Include warning around unusable passwords

Users marked with unusable passwords can not request password reset
emails. This important information is only found in the
PasswordResetView docs, and not in the set_unusable_password docs. This
patch rectifies this shortcoming and places the information where it is
needed.
This commit is contained in:
Amin Shah Gilani 2022-01-21 17:34:07 -05:00
parent 2d8232fa71
commit c36303ee44
No known key found for this signature in database
GPG Key ID: 6D4DD893298FFAF4
1 changed files with 5 additions and 0 deletions

View File

@ -182,6 +182,11 @@ Methods
You may need this if authentication for your application takes place
against an existing external source such as an LDAP directory.
.. note::
Users marked with an unusable password will not
able to request a password reset email via
:class:`~django.contrib.auth.views.PasswordResetView`.
.. method:: has_usable_password()
Returns ``False`` if