Commit 3db44f59 authored by chirac's avatar chirac

Merge branch 'fix_crypt_password' into 'master'

fix crypt password verification function

See merge request federez/re2o!419
parents a8dbe462 814fec7d
Pipeline #1172 passed with stage
in 3 minutes and 8 seconds
......@@ -115,7 +115,7 @@ class CryptPasswordHasher(hashers.BasePasswordHasher):
assert encoded.startswith(self.algorithm)
salt = hash_password_salt(encoded)
return constant_time_compare(crypt.crypt(password, salt),
return constant_time_compare(self.algorithm + crypt.crypt(password, salt),
def safe_summary(self, encoded):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment