fixed issue 1587:Mongodb error on id

This commit is contained in:
mdipierro
2013-07-17 07:37:38 -05:00
parent cd14782641
commit 63ca73d6f0
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ def compare(a, b):
def md5_hash(text):
""" Generate a md5 hash with the given text """
return md5(text).hexdigest()
return md5.new(text).hexdigest()
def simple_hash(text, key='', salt='', digest_alg='md5'):