--- a/cubicweb/server/utils.py Fri Apr 12 11:54:42 2019 +0200
+++ b/cubicweb/server/utils.py Fri Apr 12 13:52:17 2019 +0200
@@ -51,9 +51,7 @@
_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
--- a/setup.py Fri Apr 12 11:54:42 2019 +0200
+++ b/setup.py Fri Apr 12 13:52:17 2019 +0200
@@ -69,7 +69,7 @@
'yams >= 0.45.0',
'lxml',
'logilab-database >= 1.15.0',
- 'passlib',
+ 'passlib >= 1.7',
'pytz',
'Markdown',
'filelock',