From ae6a39196dea057792f607f8e199aca44bfefc35 Mon Sep 17 00:00:00 2001 From: hanhh <18330117883@163.com> Date: Tue, 31 Aug 2021 11:06:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0ql=20resettfa=E7=A6=81?= =?UTF-8?q?=E7=94=A8=E4=B8=A4=E6=AD=A5=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/update.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/shell/update.sh b/shell/update.sh index f9960e57..f7425937 100755 --- a/shell/update.sh +++ b/shell/update.sh @@ -247,6 +247,7 @@ usage() { echo -e "6. $cmd_update bot # 启动tg-bot" echo -e "7. $cmd_update check # 检测青龙环境并修复" echo -e "8. $cmd_update resetlet # 重置登录错误次数" + echo -e "9. $cmd_update resettfa # 禁用两步登录" } ## 更新qinglong @@ -488,7 +489,13 @@ main() { resetlet) echo -e "## 开始执行... $begin_time\n" >>$log_path auth_value=$(cat $file_auth_user | jq '.retries =0' -c) - echo -e "重置成功 \n $auth_value" >>$log_path + echo -e "重置登录错误次数成功 \n $auth_value" >>$log_path + echo "$auth_value" >$file_auth_user + ;; + resettfa) + echo -e "## 开始执行... $begin_time\n" >>$log_path + auth_value=$(cat $file_auth_user | jq '.twoFactorActived =false' -c) + echo -e "禁用两步验证成功 \n $auth_value" >>$log_path echo "$auth_value" >$file_auth_user ;; *)