mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update panel_tools.py
This commit is contained in:
+3
-3
@@ -222,8 +222,8 @@ def set_panel_pwd(password, ncli=False):
|
||||
info = model.getUserByRoot()
|
||||
model.setUserByRoot(password=password)
|
||||
if ncli:
|
||||
print("|-用户名: " + info['name'])
|
||||
print("|-新密码: " + password)
|
||||
print("|-username: " + info['name'])
|
||||
print("|-password: " + password)
|
||||
else:
|
||||
print(username)
|
||||
|
||||
@@ -257,7 +257,7 @@ def set_panel_username(username=None):
|
||||
return
|
||||
|
||||
thisdb.setUserByRoot(name=username)
|
||||
print("|-新用户名: %s" % username)
|
||||
print("|-username: %s" % username)
|
||||
return
|
||||
|
||||
info = thisdb.getUserByRoot()
|
||||
|
||||
Reference in New Issue
Block a user