Commit 8430f7da authored by Laurent Peuch's avatar Laurent Peuch
Browse files

[mod] remove backward compatible code for passlib and force modern version

parent 9b883489279f
......@@ -51,9 +51,7 @@ class CustomMD5Crypt(uh.HasSalt, uh.GenericHandler):
_CRYPTO_CTX = CryptContext(['sha512_crypt', CustomMD5Crypt, 'des_crypt', 'ldap_salted_sha1'],
deprecated=['cubicwebmd5crypt', 'des_crypt'])
# for bw compat with passlib < 1.7
if not hasattr(_CRYPTO_CTX, 'hash'):
_CRYPTO_CTX.hash = _CRYPTO_CTX.encrypt
verify_and_update = _CRYPTO_CTX.verify_and_update
......
......@@ -69,7 +69,7 @@ setup(
'yams >= 0.45.0',
'lxml',
'logilab-database >= 1.15.0',
'passlib',
'passlib >= 1.7',
'pytz',
'Markdown',
'filelock',
......
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