We should return a unicode object in bcrypt_gen_password_hash
authorChristopher Allan Webber <cwebber@dustycloud.org>
Sun, 3 Apr 2011 18:33:45 +0000 (13:33 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Sun, 3 Apr 2011 18:33:45 +0000 (13:33 -0500)
mediagoblin/auth/lib.py

index 29b955a03408e45cb4e1c6c21261055148267d1c..8de67d14bcca20084892fe468dedacdc494a5e04 100644 (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()))