Convert hashed pwd to string before storing in server_config.json

This commit is contained in:
Shreya 2021-05-03 20:08:11 +05:30
parent b5d05a1a78
commit d2083149dd
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ class UserCreds:
if "password" in data_dict:
creds.password_hash = bcrypt.hashpw(
data_dict["password"].encode("utf-8"), bcrypt.gensalt()
)
).decode()
return creds
@staticmethod