Skip to content

Commit f8f152a

Browse files
committed
Update user.py
1 parent b2f595d commit f8f152a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

web/admin/model/user.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,11 @@ def setUserByRoot(
7575

7676
if name is not None:
7777
data['password'] = mw.md5(password)
78+
79+
print(data)
7880

7981
Users.query.filter(Users.id==1).update(data)
8082
db.session.commit()
81-
db.session.close()
8283
return True
8384

8485
def isLoginCheck(username, password) -> bool:

0 commit comments

Comments
 (0)