Commit ac95a289 by BellCodeEditor

save project

parent f0292485
Showing with 8 additions and 3 deletions
......@@ -28,7 +28,12 @@ def register():
with open("user.txt","w",encoding="utf_8")as ren:
ren.write(json.dumps(users))
def login(): # 登录验证
pass
name,password1=app_jogin.get_input()
gat=users.get(name)
if pwd==password:
messagebox.showinfo("可以了")
else:
messagebox.showsarning("错了我了")
class My_login(): # 登录窗口
def __init__(self):
self.root = tkinter.Tk()
......
{"admin": "123456"}
\ No newline at end of file
{"admin": "123456", "\u4e0d\u72af\u6cd5": "123", "sss": "321"}
\ 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