Commit 915ff26d by BellCodeEditor

save project

parent 913866ae
Showing with 11 additions and 1 deletions
......@@ -28,9 +28,19 @@ def register(): # 注册验证
messagebox.showwarning("度假")
else:
users[name] = password1
content = json.dumps(users)
with open("user.txt","r",encoding="utf-8")as file:
file.write(content)
messagebox.showinfo("疯狂")
reg_to_login()
def login(): # 登录验证
pass
name,password = app_login.app_login()
pwd = users.get(name)
if pwd == password:
messagebox.showinfo("估计")
else:
messagebox.showwarning("人员")
class My_login(): # 登录窗口
def __init__(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment