Commit fe0c1219 by BellCodeEditor

save project

parent 3e00b8da
Showing with 4 additions and 4 deletions
...@@ -18,7 +18,7 @@ def reg_to_login(): # 注册界面转登录界面 ...@@ -18,7 +18,7 @@ def reg_to_login(): # 注册界面转登录界面
app_login = My_login() app_login = My_login()
app_login.show() app_login.show()
def register(): # 注册验证 def register(): # 注册验证
name,password1,password2 = app_reg.show() name,password1,password2 = app_reg.get_input()
if name == "" or password1 == "" or password2 == "": if name == "" or password1 == "" or password2 == "":
warn("警告","请填写完整的注册信息!") warn("警告","请填写完整的注册信息!")
elif name in users: elif name in users:
...@@ -31,7 +31,7 @@ def register(): # 注册验证 ...@@ -31,7 +31,7 @@ def register(): # 注册验证
with open("user.txt","w",encoding = "utf-8") as file: with open("user.txt","w",encoding = "utf-8") as file:
file.write(content) file.write(content)
tip("成功","注册成功") tip("成功","注册成功")
login_show() reg_to_login()
def login(): # 登录验证 def login(): # 登录验证
pass pass
......
{"admin": "123456"} {"admin":"123456"}
\ No newline at end of file \ 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