pull/632/head
Mr Chen 6 months ago
parent 0b6cdec4ce
commit 044eb2b65f
  1. 6
      panel_tools.py
  2. 3
      web/thisdb/__init__.py
  3. 13
      web/thisdb/init.py

@ -237,9 +237,9 @@ def show_panel_pwd():
pwd = mw.readFile(defailt_pwd_file).strip() pwd = mw.readFile(defailt_pwd_file).strip()
if mw.md5(pwd) == info['password']: if mw.md5(pwd) == info['password']:
print('password: ' + pwd) print('|-password: ' + pwd)
return return
print("password has been changed!") print("* password has been changed!")
def show_panel_adminpath(): def show_panel_adminpath():
admin_path = thisdb.getOption('admin_path') admin_path = thisdb.getOption('admin_path')
@ -264,7 +264,7 @@ def set_panel_username(username=None):
if info['name'] == 'admin': if info['name'] == 'admin':
username = mw.getRandomString(8).lower() username = mw.getRandomString(8).lower()
thisdb.setUserByRoot(name=username) thisdb.setUserByRoot(name=username)
print('|-用户名: ' + info['name']) print('|-username: ' + info['name'])
def getServerIp(): def getServerIp():

@ -8,5 +8,6 @@
# Author: midoks <midoks@163.com> # Author: midoks <midoks@163.com>
# --------------------------------------------------------------------------------- # ---------------------------------------------------------------------------------
from .init import *
from .option import * from .option import *
from .user import * from .user import *

@ -0,0 +1,13 @@
# coding:utf-8
# ---------------------------------------------------------------------------------
# MW-Linux面板
# ---------------------------------------------------------------------------------
# copyright (c) 2018-∞(https://github.com/midoks/mdserver-web) All rights reserved.
# ---------------------------------------------------------------------------------
# Author: midoks <midoks@163.com>
# ---------------------------------------------------------------------------------
def initPanelData():
pass
Loading…
Cancel
Save