Commit 0c883320 by BellCodeEditor

save project

parent af4a0f78
Showing with 4 additions and 4 deletions
......@@ -88,7 +88,7 @@ def register(): # 注册验证
user_info={}
user_info['password']=password1
user_info['event']=['提示1:可以从输入框中添加新任务']
users[name] = password1
users[name] = user_info
content = json.dumps(users)
with open("user.txt", "w", encoding="utf-8") as file: # "w"每次写入都覆盖原来的内容
file.write(content)
......@@ -98,7 +98,7 @@ def register(): # 注册验证
def login():
global app,alist # 登录验证
name, password = app_login.get_input()
name,password = app_login.get_input()
user_name = users.get(name)
if user_name != None and user_name['password'] == password:
alist = users[name]['event']
......
{"admin": "admin", "python": "123456", "6208": "12345678"}
\ No newline at end of file
{"admin": "admin", "python": "123456", "6208": "12345678", "852": {"password": "852", "event": []}}
\ 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