Browse Source

fix crypt password verification function

hotfix_vendor_indexerror
Fardale 7 years ago
parent
commit
814fec7d2a
  1. 2
      re2o/login.py

2
re2o/login.py

@ -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),
encoded)
def safe_summary(self, encoded):

Loading…
Cancel
Save