1
0
mirror of https://github.com/django/django.git synced 2025-03-12 02:12:38 +00:00

Doc'd that users with unusable passwords cannot request a password reset.

This commit is contained in:
Amin Shah Gilani 2023-12-19 12:04:04 -05:00 committed by GitHub
parent 08306bad57
commit 47033bfd48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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