Commit 07e8baec by BellCodeEditor

save project

parent d4410d60
Showing with 17 additions and 2 deletions
......@@ -29,9 +29,24 @@ def register(): # 注册验证
users[name] = password1
reg_to_login()
n=3
def login(): # 登录验证
pass
name,password = app_login.get_input()
pwd = users.get(name)
result=str(users)
if n > 0:
if name in result:
if pwd == password:
messagebox.showinfo("提示","登陆成功")
else:
messagebox.showwarning("警告","密码错误,还有"+str(n+10000)+"次机会")
n=n-1
else:
messagebox.showwarning("警告","用户名错误")
n=n-1
else:
messagebox.showwarning("警告","反恐精英吃屎")
next()
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