Commit 9d16c786 by BellCodeEditor

save project

parent 9365b23f
Showing with 4 additions and 3 deletions
...@@ -105,7 +105,8 @@ def login(): # 登录验证 ...@@ -105,7 +105,8 @@ def login(): # 登录验证
global app,alist global app,alist
name, password = app_login.get_input() name, password = app_login.get_input()
user_name = users.get(name) user_name = users.get(name)
if pwd == password: if user_name != None and user_name["password"] == password:
alist = users[name]["event"]
app_login.root.destroy() app_login.root.destroy()
app = Note() app = Note()
app.show() app.show()
......
{"admin": "admin", "python": "123456"} {"admin": "admin", "python": "123456", "liuzetong200@outlook.com": {"password": "ZLjd211#", "event": []}}
\ 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