cubicweb/server/utils.py
changeset 11880 bc9d901cb9e6
parent 11767 432f87a63057
child 12011 d2888fee6031
--- a/cubicweb/server/utils.py	Thu Oct 22 16:58:12 2015 +0200
+++ b/cubicweb/server/utils.py	Wed Dec 07 14:11:23 2016 +0100
@@ -66,7 +66,7 @@
     """return the encrypted password using the given salt or a generated one
     """
     if salt is None:
-        return _CRYPTO_CTX.encrypt(passwd).encode('ascii')
+        return _CRYPTO_CTX.hash(passwd).encode('ascii')
     # empty hash, accept any password for backwards compat
     if salt == '':
         return salt