From 12a18dafd7d8cf9b51c10b4caf5e2d002092b6f1 Mon Sep 17 00:00:00 2001
From: BellCodeEditor <bellcode_dev@bell.ai>
Date: Sat, 25 Jun 2022 17:55:02 +0800
Subject: [PATCH] save project

---
 my_app.py  | 4 +++-
 users.text | 2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/my_app.py b/my_app.py
index 5ff292a..8d0fdcf 100644
--- a/my_app.py
+++ b/my_app.py
@@ -1,9 +1,11 @@
 import tkinter
 from tkinter import messagebox
 import json
+
 with open('user.txt','r',encoding='utf-8')as f:
     info=f.read()
     users=json.loads(info)
+
 def login_to_reg():    # 登录界面转注册界面
     app_login.root.destroy()
     global app_reg
@@ -29,7 +31,7 @@ def register():     # 注册验证
         with open('users.text','w',encoding='utf-8') as flie:
             flie.write(content)
         messagebox.showinfo('完成','信息保存成功!')
-        login_show()
+        reg_to_login()
 def login():    # 登录验证
     pass    
 
diff --git a/users.text b/users.text
index 4ae483f..6ec5c47 100644
--- a/users.text
+++ b/users.text
@@ -1 +1 @@
-{"admin": "123456", "dsa": "123"}
\ No newline at end of file
+{"admin": "123456", "as": "as"}
\ No newline at end of file
--
libgit2 0.25.0