We should return a unicode object in bcrypt_gen_password_hash

This commit is contained in:
Christopher Allan Webber 2011-04-03 13:33:45 -05:00
parent 73a6e206e6
commit e0bc23d370

View File

@ -63,4 +63,4 @@ def bcrypt_gen_password_hash(raw_pass, extra_salt=None):
if extra_salt:
raw_pass = u"%s:%s" % (extra_salt, raw_pass)
return bcrypt.hashpw(raw_pass, bcrypt.gensalt())
return unicode(bcrypt.hashpw(raw_pass, bcrypt.gensalt()))