Commit bf6d6f95 by BellCodeEditor

save project

parent 891dbf73
Showing with 9 additions and 2 deletions
......@@ -15,8 +15,15 @@ def reg_to_login(): # 注册界面转登录界面
def register(): # 注册验证
name,assword1,password2 = app_reg.get_input()
if name == "" or password1 == ""
name,password1,password2 = app_reg.get_input()
if name == "" or password1 == "" or password2 == "":
messagebox.showwarning('艹','请填完整注册资料')
elif name in users:
messagebox.showwarning('艹','用户名已存在')
elif password1 != password2:
messagebox.showwarning('艹','两次密码不统一')
else:
users[name] = password1
def login(): # 登录验证
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