Skip to content

Commit 6a8b8bb

Browse files
authored
Merge pull request #18 from HonzsSedlomn/bug-fixes
Fixed generate_password_hash
2 parents 1f7d69c + 5ad10e6 commit 6a8b8bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

project/server/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def __init__(self, email, password, admin=False):
2020
self.email = email
2121
self.password = bcrypt.generate_password_hash(
2222
password, app.config.get('BCRYPT_LOG_ROUNDS')
23-
)
23+
).decode('utf-8')
2424
self.registered_on = datetime.datetime.now()
2525
self.admin = admin
2626

0 commit comments

Comments
 (0)