跳到主要内容
帮助中心

新闻公告

产品更新、运营公告与行业观察
一手消息,第一时间同步给你

宝塔面板取消强制登陆绑定账号

链接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();}

需要还原就改成上面那个就可以了。


本文链接
返回本栏目
工单