Update user.py
This commit is contained in:
parent
b2f595dfb2
commit
f8f152affb
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue