修改密码或者账号的时候会跳以下代码
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 3159, in password_salt
chdck_salt()
File "/www/server/panel/class/public.py", line 3136, in chdck_salt
pdata['password'] = md5(md5(u_info['password']+'_bt.cn') + salt)
TypeError: string indices must be integers |