From 7093733a6999bd11ae3aa9b556acb70c603e4fd6 Mon Sep 17 00:00:00 2001 From: suti7yk5032 Date: Sat, 8 Jun 2024 22:07:51 +0900 Subject: [PATCH] =?UTF-8?q?int=E5=9E=8B=E3=82=92=E6=98=8E=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dislocker_client.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dislocker_client.py b/dislocker_client.py index ed9cde3..f7b5706 100644 --- a/dislocker_client.py +++ b/dislocker_client.py @@ -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: