Signed-off-by: Joachim Kuebart <joachim.kuebart@gmail.com>
vpninfo->token_bypassed)
return -EINVAL;
- if (!strcmp(form->auth_id, "frmLogin")) {
+ if (opt->type == OC_FORM_OPT_PASSWORD &&
+ (!strcmp(form->auth_id, "frmLogin") ||
+ !strcmp(form->auth_id, "loginForm"))) {
/* XX: The first occurence of a password input field in frmLogin is likely to be a password,
* not token, input. However, if we have already added a password input field to this form,
* then a second one is likely to hold a token.