Commit de847abe by BellCodeEditor

save project

parent bc64936c
Showing with 5 additions and 5 deletions
......@@ -21,9 +21,9 @@ def reg_to_login(): # 注册界面转登录界面
def register(): #注册验证
name,password1,password2=app_reg.get_input()
if name=='' or password1=='' or password2=='':
massagebox.showwarning('警告','请填写完整信息')
messagebox.showwarning('警告','请填写完整信息')
elif name in users:
massagebox.showwarning('警告','用户名已存在')
messagebox.showwarning('警告','用户名已存在')
elif password1 != password2:
messagebox.showwarning('错误','两次密码输入不一致')
else:
......@@ -33,7 +33,7 @@ def register(): #注册验证
file.write(content)
#注册成功,跳转到登录页
messagebox.showinfo('成功','注册成功')
reg_to_login()
def login(): # 登录验证
......
{"admin": "123456", "wujiashen": "20090906"}
\ No newline at end of file
{"www": "123456", "2ww": "123456", "***": "***", "12345": "123456", "wangzewen": "123456", "ww": "123456", "xsm": "xsm"}
\ No newline at end of file
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