forked from p15670423/monkey
Convert hashed pwd to string before storing in server_config.json
This commit is contained in:
parent
b5d05a1a78
commit
d2083149dd
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue