Commit 7da9a40b by BellCodeEditor

save project

parent d730bb5e
Showing with 9 additions and 3 deletions
...@@ -32,10 +32,16 @@ def register(): # 注册验证 ...@@ -32,10 +32,16 @@ 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)
messagebox.showinfo('成功','注册成功') messagebox.showinfo('成功','注册成功')
reg_to_login()
def login(): # 登录验证 def login(): # 登录验证
name,passward=app_login.get_input()
pwd=users.get(name)
if pwd==passward:
messagebox.showinfo('成功','登陆成功')
else:
messagebox.showerror('错误','用户登陆失败')
class My_login(): # 登录窗口 class My_login(): # 登录窗口
def __init__(self): def __init__(self):
......
{"admin": "123456", "\u6211\u662f\u4f60\u7239": "54188", "\u9e21\u4f60\u592a\u7f8e": "111111"} {"admin": "123456", "\u6211\u662f\u4f60\u7239": "54188", "\u9e21\u4f60\u592a\u7f8e": "111111", "1": "1"}
\ 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