宝塔面板7.6.0版本后增强了强制用户绑定账号
只需要在SSH中输入:
1.方法一:
sed -i "s|if (bind_user == 'True') {|if (bind_user == 'REMOVED') {|g" /www/server/panel/BTPanel/static/js/index.js
恢复登录:
sed -i "s|if (bind_user == 'REMOVED') {|if (bind_user == 'True') {|g" /www/server/panel/BTPanel/static/js/index.js
2.方法二:适用7.6.0版本
rm -f /www/server/panel/data/bind.pl
3.合并命令:
sed -i "s|if (bind_user == 'True') {|if (bind_user == 'REMOVED') {|g" /www/server/panel/BTPanel/static/js/index.js && rm -f /www/server/panel/data/bind.pl
2021-12-29发现验证又改了
修改198行,去掉not
vi /www/server/panel/BTPanel/__init__.py
评论 (0)