Update user.py

This commit is contained in:
Mr Chen 2024-11-01 18:56:49 +08:00
parent b2f595dfb2
commit f8f152affb
1 changed files with 2 additions and 1 deletions

View File

@ -75,10 +75,11 @@ def setUserByRoot(
if name is not None:
data['password'] = mw.md5(password)
print(data)
Users.query.filter(Users.id==1).update(data)
db.session.commit()
db.session.close()
return True
def isLoginCheck(username, password) -> bool: