Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fix for issue/#3

  • Loading branch information...
commit e432b122dcdd9ff9723067c2aa23e50db35d4409 1 parent 35cbf84
Peter Bengtsson authored March 23, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  tornado_utils/utils.py
2  tornado_utils/utils.py
@@ -43,7 +43,7 @@ def encrypt_password(raw_password, log_rounds=10):
43 43
     salt = bcrypt.gensalt(log_rounds=log_rounds)
44 44
     hsh = bcrypt.hashpw(raw_password, salt)
45 45
     algo = 'bcrypt'
46  
-    return u'%s$bcrypt$%s' % (algo, hsh)
  46
+    return u'%s$%s$%s' % (salt, algo, hsh)
47 47
 
48 48
 
49 49
 def niceboolean(value):

0 notes on commit e432b12

Please sign in to comment.
Something went wrong with that request. Please try again.