reateToast('MFA has been enabled', 'multifactor authentication')
        }
        checkMFAStatus()
        //Sync type
        setTimeout(() => { reloadPageContent(); }, 1000);

      });
    }

    // Disable OTP for the user
    function disableMFA(){
      console.log("Info: disabling MFA");
      id = "{{ page_user_id }}"
      action = 'disable_mfa';
      $.post("{{ url_for('api') }}/users/update_user", { id: id, action: action }, function (data) {
        console.log(data);
        if (data.error_co