Fixing password changing issue

This commit is contained in:
Kevin Chung
2015-05-13 13:03:48 -04:00
parent be6430be4f
commit 3a2323b0ae

View File

@@ -335,7 +335,7 @@ def init_admin(app):
user.name = name
user.email = email
if password:
user.password = bcrypt_sha256(password)
user.password = bcrypt_sha256.encrypt(password)
user.website = website
user.affiliation = affiliation
user.country = country