为了能快速了解并处理您的问题,请提供以下基础信息:
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
|
|