Commit 9b5ccc69 by BellCodeEditor

save project

parent 73f796ce
Showing with 2 additions and 2 deletions
......@@ -29,7 +29,7 @@ def register(): # 注册验证
else:
user[name] = passward1
content = json.dumps(user)
messagebox.showwarning('提示','注册成功!')
messagebox.showinfo('提示','注册成功!')
with open('text.txt','w',encoding='utf-8') as file:
file.write(content)
reg_to_login()
......@@ -38,7 +38,7 @@ def login():
name,passward1 = app_reg.get_input()
pwd = user.get(name)
if pwd == passward1:
messagebox.showwarning('提示','登录成功!')
messagebox.showinfo('提示','登录成功!')
app_reg.root.destroy()
else:
messagebox.showwarning('错误','用户名或密码错误')
......
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