Update panel_tools.py

pull/632/head
Mr Chen 6 months ago
parent 9fd7d20051
commit 14ee45918f
  1. 2
      panel_tools.py

@ -235,7 +235,6 @@ def set_panel_pwd(password, ncli=False):
def show_panel_pwd(): def show_panel_pwd():
# 设置面板密码 # 设置面板密码
import db
sql = db.Sql() sql = db.Sql()
password = sql.table('users').where('id=?', (1,)).getField('password') password = sql.table('users').where('id=?', (1,)).getField('password')
@ -251,7 +250,6 @@ def show_panel_pwd():
def set_panel_username(username=None): def set_panel_username(username=None):
# 随机面板用户名 # 随机面板用户名
import db
sql = db.Sql() sql = db.Sql()
if username: if username:
if len(username) < 5: if len(username) < 5:

Loading…
Cancel
Save