We should return a unicode object in bcrypt_gen_password_hash
This commit is contained in:
parent
73a6e206e6
commit
e0bc23d370
@ -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()))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user