A-A+
宝塔面板取消强制登陆绑定账号
链接SSH:
一键去除
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
手动修改
/www/server/panel/BTPanel/static/js/index.js
找到这个文件,搜索
bind_user
把
if (bind_user == 'True') {
show_force_bind();
}
改成
if (bind_user == 'REMOVED') {
show_force_bind();
}
需要还原就改成上面那个就可以了。
评论已关闭!