The current process_auth_form_cb hard-codes the interpretation of these form
fields based on their names. GlobalProtect has identical fields but with
slightly different names.
Signed-off-by: Daniel Lenski <dlenski@gmail.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
} else if (opt->type == OC_FORM_OPT_TEXT) {
if (username &&
- !strcmp(opt->name, "username")) {
+ !strncmp(opt->name, "user", 4)) {
opt->_value = username;
username = NULL;
} else {
} else if (opt->type == OC_FORM_OPT_PASSWORD) {
if (password &&
- !strcmp(opt->name, "password")) {
+ !strncmp(opt->name, "pass", 4)) {
opt->_value = password;
password = NULL;
} else {