Commit 91364260 by BellCodeEditor

save project

parent e67dd4a6
Showing with 3 additions and 3 deletions
...@@ -19,15 +19,15 @@ def reg_to_login(): # 注册界面转登录界面 ...@@ -19,15 +19,15 @@ def reg_to_login(): # 注册界面转登录界面
app_login.show() app_login.show()
def register(): # 注册验证 def register(): # 注册验证
name,password1,password2=get_input() name,password1,password2=app_reg.get_input()
if name==""or password1==""or password2=="": if name==""or password1==""or password2=="":
messagebox.showwarning("警告!","请填写完整用户资料") messagebox.showwarning("警告!","请填写完整用户资料")
elif name in user: elif name in user:
messagebox.showwarning("警告!","用户名已存在") messagebox.showwarning("警告!","用户名已存在")
elif password1!=password2: elif password1!=password2:
messagebox.showwarning("警告!","请填写正确密码") messagebox.showwarning("警告!","请填写正确密码")
elif: else:
messagebox.showwof("创建成功") messagebox.showinfo("注册成功")
user[name]=password1 user[name]=password1
......
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