Commit f024ca2c by BellCodeEditor

save project

parent 66441338
Showing with 8 additions and 1 deletions
...@@ -31,9 +31,16 @@ def register(): # 注册验证 ...@@ -31,9 +31,16 @@ def register(): # 注册验证
info2 = json.dumps(zd) info2 = json.dumps(zd)
with open("user.txt","w",enoding="utr-8") as f3: with open("user.txt","w",enoding="utr-8") as f3:
f3.write(info2) f3.write(info2)
messagebox.showinfo("提示","注册成功")
reg_to_login() reg_to_login()
def login(): # 登录验证 def login(): # 登录验证
pass name,mima = app_login.get_input()
psw = zd.get(name)
if psw == mima:
messagebox.showinfo("提示","登录成功")
else:
messagebox.showerror("错误","用户名或密码错误")
class My_login(): # 登录窗口 class My_login(): # 登录窗口
def __init__(self): 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