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