Compare commits

..

No commits in common. "0f21c030031d2f6207ef0dacb9c0da6483523d4d" and "d8f971730457638bc0bb0380d5d506409fe8e3e7" have entirely different histories.

2 changed files with 3 additions and 18 deletions

View file

@ -103,26 +103,12 @@ class Lock(customtkinter.CTkToplevel):
"pc_number": int(client_config["pc_number"]),
"password": self.hash_genarate(str(self.password_entry.get()))
}
try:
responce = requests.post(auth_url, json=auth_json)
except:
master_password_hash = self.hash_genarate(str(self.password_entry.get()))
if client_config["master_password_hash"] == master_password_hash:
self.destroy()
app.exit()
else:
self.msg_subtitle_1.configure(text='サインインするには、パスワードが必要です。\nネットワークエラーが発生しています。\n続行するには、マスターパスワードを入力して下さい。')
responce = requests.post(auth_url, json=auth_json)
if responce.status_code == 200:
self.destroy()
app.exit()
else:
master_password_hash = self.hash_genarate(str(self.password_entry.get()))
if client_config["master_password_hash"] == master_password_hash:
self.destroy()
app.exit()
else:
self.msg_subtitle_1.configure(text='サインインするには、パスワードが必要です。\nパスワードが違います!')
self.msg_subtitle_1.configure(text='サインインするには、パスワードが必要です。\nパスワードが違います!')
def handler_close(self):
pass

View file

@ -4,5 +4,4 @@ flask-login
psycopg2-binary
winotify
customtkinter
keyboard
requests
keyboard