宝塔51特惠活动,企业版1099元/年,送SSL证书,最高立减2万元!查看活动
当前位置:论坛首页 > Linux面板 > 求助

【已解决】忘记密码后无法修改密码

发表在 Linux面板2023-12-13 15:20 [复制链接] 1 2530

为了能快速了解并处理您的问题,请提供以下基础信息:
面板、插件版本:

8.0.4
系统版本:

CentOS Linux release 7.9.2009 (Core)

问题描述:

升级8.0.4后,原先的密码用不了了,使用正确的密码显示密码错误
之后使用bt 5指令和强制设置密码指令报错,报错在下面
注:我有root权限
相关截图(日志、错误):

bt 5 报错:
Traceback (most recent call last):
  File "/www/server/panel/tools.py", line 974, in <module>
    bt_cli(clinum)
  File "/www/server/panel/tools.py", line 710, in bt_cli
    set_panel_pwd(input_pwd.strip(), True)
  File "/www/server/panel/tools.py", line 156, 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 3165, in password_salt
    return md5(md5(password+'_bt.cn')+salt)
TypeError: can only concatenate str (not "list") to str


cd /www/server/panel && btpython tools.py panel testpasswd 报错:


Traceback (most recent call last):
  File "tools.py", line 950, in <module>
    set_panel_pwd(sys.argv[2])
  File "tools.py", line 156, 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 3165, in password_salt
    return md5(md5(password+'_bt.cn')+salt)
TypeError: can only concatenate str (not "list") to str





使用道具 举报 只看该作者 回复
发表于 2023-12-13 15:24:49 | 显示全部楼层
已解决……用bt 16修复了
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术免费分析
快速回复 返回顶部 返回列表