int型を明示
This commit is contained in:
parent
dedccf5f95
commit
7093733a69
1 changed files with 3 additions and 3 deletions
|
@ -97,8 +97,8 @@ class Lock(customtkinter.CTkToplevel):
|
|||
def auth(self):
|
||||
auth_url = client_config["auth_host_url"] + "/verify"
|
||||
auth_json = {
|
||||
"pc_number": client_config["pc_number"],
|
||||
"password": self.hash_genarate(self.password_entry.get())
|
||||
"pc_number": int(client_config["pc_number"]),
|
||||
"password": self.hash_genarate(str(self.password_entry.get()))
|
||||
}
|
||||
responce = requests.post(auth_url, json=auth_json)
|
||||
if responce.status_code == 200:
|
||||
|
@ -121,7 +121,7 @@ if not os.path.isfile(client_config_path):
|
|||
os.mkdir(config_dir_path)
|
||||
|
||||
client_config = {
|
||||
"auth_host_url": "localhost",
|
||||
"auth_host_url": "http://localhost",
|
||||
"pc_number": ""
|
||||
}
|
||||
with open(client_config_path, "w") as w:
|
||||
|
|
Loading…
Reference in a new issue