Commit 7d489b41 by BellCodeEditor

auto save

parent d352b16c
Showing with 6 additions and 1 deletions
...@@ -33,7 +33,12 @@ def register(): # 注册验证 ...@@ -33,7 +33,12 @@ def register(): # 注册验证
reg_to_login() # 调用reg_to_login()函数转入登录界面 reg_to_login() # 调用reg_to_login()函数转入登录界面
def login(): # 登录验证 def login(): # 登录验证
pass name, password = app_login.grt_input() # 用get_input()方法获取账户,密码分别赋值
pwd = users.get(name) # 用users.get(name)方式取出正确密码
if pwd == password: # if判断正确密码与输入密码是否相等
messagebox.showinfo("成功", "登录成功") # 登录成功提示
else: # 否则
messagebox.showwarning("错误", "用户名或密码错误!") # 登录失败提示
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