1
0
mirror of https://github.com/django/django.git synced 2025-06-02 18:19:11 +00:00

[5.0.x] Doc'd that users with unusable passwords cannot request a password reset.

Backport of 47033bfd486206d6809068c838d45b999e5c1bd2 from main
This commit is contained in:
Amin Shah Gilani 2023-12-19 12:04:04 -05:00 committed by Natalia
parent 6bf8ca7b16
commit d8bff5adda

View File

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