Commit b7561945 by BellCodeEditor

save project

parent b567af3e
Showing with 7 additions and 4 deletions
......@@ -33,11 +33,14 @@ def register(): # 注册验证
def login(): # 登录验证
name,password = app_login.get_input()
pwd = users.get(name)
if pwd == password:
messagebox.showinfo("提示",'登陆成功')
result = str(users)
if name in result:
if pwd == password:
messagebox.showinfo("提示",'登陆成功')
else:
messagebox.showwarning('警告','密码错误')
else:
messagebox.showwarning('警告','密码错误')
messagebox.showwarning('警告','用户名错误')
class My_login(): # 登录窗口
def __init__(self):
self.root = tkinter.Tk()
......
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