Commit a68a8db5 by BellCodeEditor

save project

parent 98a72315
Showing with 6 additions and 5 deletions
......@@ -96,10 +96,11 @@ def register(): # 注册验证
reg_to_login()
def login(): # 登录验证
global app
global app,alist
name, password = app_login.get_input()
pwd = users.get(name)
if pwd == password:
user_name = users.get(name)
if users != None and user_name["password"]== password:
alist=users[name]["event"]
app_login.root.destroy()
app=Note()
app.show()
......
{"admin": "admin", "python": "123456", "111111": "111111"}
\ No newline at end of file
{"admin": "admin", "python": "123456", "111111": "111111", "1": {"password": ["1...", "2..."]}, "111": {"password": ["1...", "2..."]}}
\ 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