MCPcopy
hub / github.com/django/django / set_unusable_password

Method set_unusable_password

django/contrib/auth/base_user.py:122–124  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

120 return await acheck_password(raw_password, self.password, setter)
121
122 def set_unusable_password(self):
123 # Set a value that will never be a valid hash
124 self.password = make_password(None)
125
126 def has_usable_password(self):
127 """

Calls 1

make_passwordFunction · 0.90