From: Daniel Lenski Date: Mon, 29 Mar 2021 02:00:52 +0000 (-0700) Subject: Juniper: bugfix handling of loginForm.VerificationCode X-Git-Tag: v8.20~328^2 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=4d992ff08da8f452346e41d7b7bd4342efae383c;p=users%2Fdwmw2%2Fopenconnect.git Juniper: bugfix handling of loginForm.VerificationCode Need to whitelist this form by 'auth_id' in oncp_can_gen_tokencode. Missed in f582b233afc688cd7090aa01ee1a0af61597bef1. Signed-off-by: Daniel Lenski --- diff --git a/auth-juniper.c b/auth-juniper.c index 4c6f4ad0..0f180904 100644 --- a/auth-juniper.c +++ b/auth-juniper.c @@ -75,7 +75,8 @@ static int oncp_can_gen_tokencode(struct openconnect_info *vpninfo, if (strcmp(form->auth_id, "frmDefender") && strcmp(form->auth_id, "frmNextToken") && - strcmp(form->auth_id, "frmTotpToken")) + strcmp(form->auth_id, "frmTotpToken") && + strcmp(form->auth_id, "loginForm")) return -EINVAL; okay: