MCPcopy
hub / github.com/django/django / _check_encode_args

Method _check_encode_args

django/contrib/auth/hashers.py:258–262  ·  view source on GitHub ↗
(self, password, salt)

Source from the content-addressed store, hash-verified

256 )
257
258 def _check_encode_args(self, password, salt):
259 if password is None:
260 raise TypeError("password must be provided.")
261 if not salt or "$" in force_str(salt): # salt can be str or bytes.
262 raise ValueError("salt must be provided and cannot contain $.")
263
264 def encode(self, password, salt):
265 """

Callers 3

encodeMethod · 0.80
encodeMethod · 0.80
encodeMethod · 0.80

Calls 1

force_strFunction · 0.90

Tested by

no test coverage detected