修复ql resettfa命令

This commit is contained in:
hanhh 2021-09-25 00:15:23 +08:00
parent ca9d742359
commit f1cc7641fb

View File

@ -494,8 +494,7 @@ main() {
;;
resettfa)
echo -e "## 开始执行... $begin_time\n" >>$log_path
auth_value=$(cat $file_auth_user | jq '.twoFactorActivated =false' -c)
auth_value=$(cat $auth_value | jq '.twoFactorActived =false' -c)
auth_value=$(cat $file_auth_user | jq '.twoFactorActivated =false' | jq '.twoFactorActived =false' -c)
echo -e "禁用两步验证成功 \n $auth_value" >>$log_path
echo "$auth_value" >$file_auth_user
;;