已用BT面板的修复,但是没有用,重置面板密码报错如下- 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 2647, in password_salt
- chdck_salt()
- File "/www/server/panel/class/public.py", line 2623, in chdck_salt
- pdata['password'] = md5(md5(u_info['password']+'_bt.cn') + salt)
- TypeError: string indices must be integers
复制代码
|
|