Update user.py
This commit is contained in:
parent
a4cdc1e03b
commit
205bb47101
|
|
@ -75,6 +75,9 @@ def setUserByRoot(
|
|||
|
||||
if password is not None:
|
||||
data['password'] = mw.md5(password)
|
||||
|
||||
if not data:
|
||||
return False
|
||||
|
||||
Users.query.filter(Users.id==1).update(data)
|
||||
db.session.commit()
|
||||
|
|
|
|||
Loading…
Reference in New Issue