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:
@@ -73,10 +73,8 @@ def setUserByRoot(
|
||||
if name is not None:
|
||||
data['name'] = name
|
||||
|
||||
if name is not None:
|
||||
if password is not None:
|
||||
data['password'] = mw.md5(password)
|
||||
|
||||
print(data)
|
||||
|
||||
Users.query.filter(Users.id==1).update(data)
|
||||
db.session.commit()
|
||||
|
||||
Reference in New Issue
Block a user