mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update user.py
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user