Skip to content

Commit 91bf379

Browse files
committed
Fix bug with password hash being double encrypted
1 parent 48154ae commit 91bf379

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/src/admin/auth/user.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def create_user(self, email: str, name: str, password: str) -> int:
7272
salt = bcrypt.gensalt()
7373
pwd = password.encode()
7474

75-
hashed_pwd = bcrypt.hashpw(pwd, salt)
75+
hashed_pwd = bcrypt.hashpw(pwd, salt).decode("utf-8")
7676

7777
user_id = self.database_manager.query(
7878
"""

0 commit comments

Comments
 (0)