Commit 8d9a0c96 by BellCodeEditor

save project

parent 6a7fb91c
Showing with 5 additions and 0 deletions
...@@ -25,6 +25,11 @@ def register(): # 注册验证 ...@@ -25,6 +25,11 @@ def register(): # 注册验证
messagebox.showwarning("错误","用户已存在") messagebox.showwarning("错误","用户已存在")
elif password1 != password2: elif password1 != password2:
messagebox.showwarning("错误","两次密码输入不一致") messagebox.showwarning("错误","两次密码输入不一致")
else:
users[name] = password1
content = json.dumps(users)
messagebox.showinfo("成功","注册成功")
login_show()
def login(): # 登录验证 def login(): # 登录验证
pass pass
......
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