luci-proto-modemmanger: fix auth handling

This has never worked because the option 'auth' is not known to the
modemmanger proto handler. The correct uci name is 'allowedauth' and is
also a uci list option, so that several options can be selected.

This commit fixes this bug.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
Florian Eckert
2024-05-03 12:43:06 +02:00
parent b3ea37cf89
commit 7546249a27

View File

@@ -76,11 +76,13 @@ return network.registerProtocol('modemmanager', {
o = s.taboption('general', form.Value, 'pincode', _('PIN')); o = s.taboption('general', form.Value, 'pincode', _('PIN'));
o.datatype = 'and(uinteger,minlength(4),maxlength(8))'; o.datatype = 'and(uinteger,minlength(4),maxlength(8))';
o = s.taboption('general', form.ListValue, 'auth', _('Authentication Type')); o = s.taboption('general', form.DynamicList, 'allowedauth', _('Authentication Type'));
o.value('both', _('PAP/CHAP (both)'));
o.value('pap', 'PAP'); o.value('pap', 'PAP');
o.value('chap', 'CHAP'); o.value('chap', 'CHAP');
o.value('none', _('None')); o.value('mschap', 'MSCHAP');
o.value('mschapv2', 'MSCHAPv2');
o.value('eap', 'EAP');
o.value('', _('None'));
o.default = 'none'; o.default = 'none';
o = s.taboption('general', form.ListValue, 'allowedmode', _('Allowed network technology'), o = s.taboption('general', form.ListValue, 'allowedmode', _('Allowed network technology'),