Skip to content

Commit 044eb2b

Browse files
committed
up
1 parent 0b6cdec commit 044eb2b

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

panel_tools.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,9 @@ def show_panel_pwd():
237237
pwd = mw.readFile(defailt_pwd_file).strip()
238238

239239
if mw.md5(pwd) == info['password']:
240-
print('password: ' + pwd)
240+
print('|-password: ' + pwd)
241241
return
242-
print("password has been changed!")
242+
print("* password has been changed!")
243243

244244
def show_panel_adminpath():
245245
admin_path = thisdb.getOption('admin_path')
@@ -264,7 +264,7 @@ def set_panel_username(username=None):
264264
if info['name'] == 'admin':
265265
username = mw.getRandomString(8).lower()
266266
thisdb.setUserByRoot(name=username)
267-
print('|-用户名: ' + info['name'])
267+
print('|-username: ' + info['name'])
268268

269269

270270
def getServerIp():

web/thisdb/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@
88
# Author: midoks <[email protected]>
99
# ---------------------------------------------------------------------------------
1010

11+
from .init import *
1112
from .option import *
12-
from .user import *
13+
from .user import *

web/thisdb/init.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# coding:utf-8
2+
3+
# ---------------------------------------------------------------------------------
4+
# MW-Linux面板
5+
# ---------------------------------------------------------------------------------
6+
# copyright (c) 2018-∞(https://github.com/midoks/mdserver-web) All rights reserved.
7+
# ---------------------------------------------------------------------------------
8+
# Author: midoks <[email protected]>
9+
# ---------------------------------------------------------------------------------
10+
11+
12+
def initPanelData():
13+
pass

0 commit comments

Comments
 (0)