MCPcopy
hub / github.com/django/django / acheck_password

Method acheck_password

django/contrib/auth/base_user.py:111–120  ·  view source on GitHub ↗

See check_password().

(self, raw_password)

Source from the content-addressed store, hash-verified

109 return check_password(raw_password, self.password, setter)
110
111 async def acheck_password(self, raw_password):
112 """See check_password()."""
113
114 async def setter(raw_password):
115 self.set_password(raw_password)
116 # Password hash upgrades shouldn't be considered password changes.
117 self._password = None
118 await self.asave(update_fields=["password"])
119
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

Calls 1

acheck_passwordFunction · 0.90

Tested by 2

test_acreateMethod · 0.64