1
0
mirror of https://github.com/django/django.git synced 2025-07-22 18:49:25 +00:00

Reverted "[2.0.x] Expanded docs for AbstractBaseUser.has_usable_password()."

This reverts commit c2962d8147380b00bb965c0d42b7e05ca4596868. After discussion
in refs #28718, the decision is to treat the reverted statements as bugs.
This commit is contained in:
Tim Graham 2018-03-21 20:02:18 -04:00
parent 7f7bb1d1f4
commit 43348e4aa1
2 changed files with 2 additions and 6 deletions

View File

@ -116,9 +116,7 @@ class AbstractBaseUser(models.Model):
def has_usable_password(self):
"""
Return False if set_unusable_password() has been called for this user,
or if the password is None, or if the password uses a hasher that's not
in the PASSWORD_HASHERS setting.
Return False if set_unusable_password() has been called for this user.
"""
return is_password_usable(self.password)

View File

@ -212,9 +212,7 @@ Methods
Returns ``False`` if
:meth:`~django.contrib.auth.models.User.set_unusable_password()` has
been called for this user, or if the password is ``None``, or if the
password uses a hasher that's not in the :setting:`PASSWORD_HASHERS`
setting.
been called for this user.
.. method:: get_group_permissions(obj=None)