Commit 439efcf0 by BellCodeEditor

save project

parent 2fc2daf6
Showing with 7 additions and 4 deletions
......@@ -17,7 +17,8 @@ def reg_to_login(): # 注册界面转登录界面
app_login.show()
def register(): # 注册验证
if name == " " or password1 == " " or password2 == " ":
name,password1,password2 = app_reg.get_input()
if name == "" or password1 == "" or password2 == "":
messagebox.showwarning("警告","请填写完整的注册资料")
elif name in users:
messagebox.showwarning("错误","用户名已存在!")
......@@ -30,7 +31,9 @@ def register(): # 注册验证
file.write(content)
#成功跳往登陆界面
messagebox.showinfo("成功","注册成功!")
login.show()
reg_to_login()
def login(): # 登录验证
pass
......
{"admin": "123456"}
\ No newline at end of file
{"admin": "123456", "\u5730\u65b9\uff0c\u597d\u5676\u5730\u65b9\u8270\u82e6\u9ad8\u8003\u8f85\u5bfc\u529f\u8bfe": "", "\u7684\u4ebaGreg": "", "\u5730\u65b9\u7684\u826f\u597d\u7684\u63a5\u53e3\u8fd4\u56de\u7684": "123", "sfdafd": "", "efesfads": "", "411": "123", "d\u9ed1\u6697\u65f6": "123", "\u554a\u624b\u52a8\u9600\u51e0\u4e4e\u90fd\u662f\u5ba2\u5bb6\u8bdd": "", "\u7684\u623f\u4ef7\u8fc7\u5feb\u7684\u53cd\u9988\u548c\u53ef\u89c1\u5149": "123"}
\ 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