mirror of
https://github.com/openwrt/luci.git
synced 2025-12-21 19:14:34 +04:00
luci-proto-modemmanager: fix when to show username and password
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
@@ -125,14 +125,18 @@ return network.registerProtocol('modemmanager', {
|
|||||||
o.depends('allowedmode','5g|4g|3g|2g');
|
o.depends('allowedmode','5g|4g|3g|2g');
|
||||||
|
|
||||||
o = s.taboption('general', form.Value, 'username', _('PAP/CHAP username'));
|
o = s.taboption('general', form.Value, 'username', _('PAP/CHAP username'));
|
||||||
o.depends('auth', 'pap');
|
o.depends({'allowedauth': 'pap', '!contains': true });
|
||||||
o.depends('auth', 'chap');
|
o.depends({'allowedauth': 'chap', '!contains': true });
|
||||||
o.depends('auth', 'both');
|
o.depends({'allowedauth': 'mschap', '!contains': true });
|
||||||
|
o.depends({'allowedauth': 'mschapv2', '!contains': true });
|
||||||
|
o.depends({'allowedauth': 'eap', '!contains': true });
|
||||||
|
|
||||||
o = s.taboption('general', form.Value, 'password', _('PAP/CHAP password'));
|
o = s.taboption('general', form.Value, 'password', _('PAP/CHAP password'));
|
||||||
o.depends('auth', 'pap');
|
o.depends({'allowedauth': 'pap', '!contains': true });
|
||||||
o.depends('auth', 'chap');
|
o.depends({'allowedauth': 'chap', '!contains': true });
|
||||||
o.depends('auth', 'both');
|
o.depends({'allowedauth': 'mschap', '!contains': true });
|
||||||
|
o.depends({'allowedauth': 'mschapv2', '!contains': true });
|
||||||
|
o.depends({'allowedauth': 'eap', '!contains': true });
|
||||||
o.password = true;
|
o.password = true;
|
||||||
|
|
||||||
o = s.taboption('general', form.ListValue, 'iptype', _('IP Type'));
|
o = s.taboption('general', form.ListValue, 'iptype', _('IP Type'));
|
||||||
|
|||||||
Reference in New Issue
Block a user