MCPcopy
hub / github.com/django/django / has_usable_password

Method has_usable_password

django/contrib/auth/base_user.py:126–130  ·  view source on GitHub ↗

Return False if set_unusable_password() has been called for this user.

(self)

Source from the content-addressed store, hash-verified

124 self.password = make_password(None)
125
126 def has_usable_password(self):
127 """
128 Return False if set_unusable_password() has been called for this user.
129 """
130 return is_password_usable(self.password)
131
132 def get_session_auth_hash(self):
133 """

Callers 15

__init__Method · 0.80
get_usersMethod · 0.80
__init__Method · 0.80
user_change_passwordMethod · 0.80
test_save_buttonMethod · 0.80
test_create_userMethod · 0.80

Calls 1

is_password_usableFunction · 0.90