mirror of https://github.com/openwrt/luci.git
luci-proto-openfortivpn: make PEM key+CA optional
Fixes #7812 Some authentications schemes using username+password might already be sufficient. Signed-off-by: Paul Donald <newtwen+github@gmail.com>pull/7747/head
parent
37262790c1
commit
610ccdbcfe
|
@ -116,6 +116,7 @@ return network.registerProtocol('openfortivpn', {
|
||||||
};
|
};
|
||||||
|
|
||||||
o = s.taboption('general', form.TextValue, 'user_key', _('User key (PEM encoded)'));
|
o = s.taboption('general', form.TextValue, 'user_key', _('User key (PEM encoded)'));
|
||||||
|
o.optional = true;
|
||||||
o.rows = 10;
|
o.rows = 10;
|
||||||
o.monospace = true;
|
o.monospace = true;
|
||||||
o.validate = L.bind(validateCert, o, true);
|
o.validate = L.bind(validateCert, o, true);
|
||||||
|
@ -128,6 +129,7 @@ return network.registerProtocol('openfortivpn', {
|
||||||
};
|
};
|
||||||
|
|
||||||
o = s.taboption('general', form.TextValue, 'ca_file', _('CA certificate (PEM encoded; Use instead of system-wide store to verify the gateway certificate.'));
|
o = s.taboption('general', form.TextValue, 'ca_file', _('CA certificate (PEM encoded; Use instead of system-wide store to verify the gateway certificate.'));
|
||||||
|
o.optional = true;
|
||||||
o.rows = 10;
|
o.rows = 10;
|
||||||
o.monospace = true;
|
o.monospace = true;
|
||||||
o.validate = L.bind(validateCert, o, false);
|
o.validate = L.bind(validateCert, o, false);
|
||||||
|
|
Loading…
Reference in New Issue