mirror of
https://github.com/django/django.git
synced 2025-07-22 10:39:13 +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:
parent
7f7bb1d1f4
commit
43348e4aa1
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user