SSH修改宝塔密码提示以下报错,使用宝塔APP扫码好像也是Traceback报错;重启和使用宝塔自带的修复也不行,不知道是什么问题
【修改宝塔密码显示】
Traceback (most recent call last):
File "/www/server/panel/tools.py", line 701, in <module>
bt_cli(clinum)
File "/www/server/panel/tools.py", line 537, in bt_cli
set_panel_pwd(input_pwd.strip(),True)
File "/www/server/panel/tools.py", line 69, in set_panel_pwd
result = sql.table('users').where('id=?',(1,)).setField('password',public.password_salt(public.md5(password),uid=1))
File "/www/server/panel/class/public.py", line 2826, in password_salt
chdck_salt()
File "/www/server/panel/class/public.py", line 2803, in chdck_salt
pdata['password'] = md5(md5(u_info['password']+'_bt.cn') + salt)
TypeError: string indices must be integers
【查看宝塔信息显示】
Traceback (most recent call last):
File "/www/server/panel/tools.py", line 679, in <module>
set_panel_username()
File "/www/server/panel/tools.py", line 387, in set_panel_username
print('username: ' + username)
TypeError: can only concatenate str (not "NoneType") to str
【报错截图】
【信息】
宝塔版本:7.9.4
操作系统:CentOS 8.4
|
|