cubicweb/server/utils.py
changeset 12574 6ccf8fda063f
parent 12567 26744ad37953
--- 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