Skip to content

Instantly share code, notes, and snippets.

@del-xiong
Last active August 10, 2022 10:04
Show Gist options
  • Save del-xiong/d4422098d1d49db42726855a47c6e747 to your computer and use it in GitHub Desktop.
Save del-xiong/d4422098d1d49db42726855a47c6e747 to your computer and use it in GitHub Desktop.
宝塔移除登录强制绑定 最新兼容7.8.0
sed -i "s|show_force_bind();||g" /www/server/panel/BTPanel/static/js/index.js && \
sed -i "s|if not public.is_bind():||g" /www/server/panel/BTPanel/__init__.py && \
sed -i "s|return redirect('/bind',302)||g" /www/server/panel/BTPanel/__init__.py
# 执行完毕后重启 bt 1
@predators46
Copy link

7.9.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment