diff --git a/yubikey.c b/yubikey.c index b45ed1e6..20863b0c 100644 --- a/yubikey.c +++ b/yubikey.c @@ -480,8 +480,7 @@ int can_gen_yubikey_code(struct openconnect_info *vpninfo, struct oc_auth_form *form, struct oc_form_opt *opt) { - if ((strcmp(opt->name, "secondary_password") != 0) || - vpninfo->token_bypassed) + if (vpninfo->token_bypassed) return -EINVAL; if (vpninfo->token_tries == 0) { vpn_progress(vpninfo, PRG_DEBUG,