Commit 261177e6 by BellCodeEditor

save project

parent 84b7433c
Showing with 8 additions and 3 deletions
......@@ -35,7 +35,12 @@ def register(): # 注册验证
reg_to_login()
def login(): # 登录验证
messagebox.showinfo("提示",'登录成功')
name,password1=app_login.get_input()
pwd=users.get(name)
if pwd==password1:
messagebox.showinfo("提示",'登录成功')
else:
messagebox.showinfo("提示",'账号或密码不正确')
class My_login(): # 登录窗口
def __init__(self):
......
{"12": "1", "122": "12", "21": "22"}
\ No newline at end of file
{"12": "1", "122": "12", "21": "22", "123": "123"}
\ No newline at end of file
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