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

Function acheck_password

django/contrib/auth/hashers.py:89–97  ·  view source on GitHub ↗

See check_password().

(password, encoded, setter=None, preferred="default")

Source from the content-addressed store, hash-verified

87
88
89async def acheck_password(password, encoded, setter=None, preferred="default"):
90 """See check_password()."""
91 is_correct, must_update = await sync_to_async(
92 verify_password,
93 thread_sensitive=False,
94 )(password, encoded, preferred=preferred)
95 if setter and is_correct and must_update:
96 await setter(password)
97 return is_correct
98
99
100def make_password(password, salt=None, hasher="default"):

Calls

no outgoing calls