We should return a unicode object in bcrypt_gen_password_hash
This commit is contained in:
@@ -63,4 +63,4 @@ def bcrypt_gen_password_hash(raw_pass, extra_salt=None):
|
|||||||
if extra_salt:
|
if extra_salt:
|
||||||
raw_pass = u"%s:%s" % (extra_salt, raw_pass)
|
raw_pass = u"%s:%s" % (extra_salt, raw_pass)
|
||||||
|
|
||||||
return bcrypt.hashpw(raw_pass, bcrypt.gensalt())
|
return unicode(bcrypt.hashpw(raw_pass, bcrypt.gensalt()))
|
||||||
|
|||||||
Reference in New Issue
Block a user