summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-system/htdocs/luci-static/resources/view
diff options
context:
space:
mode:
authorPaul Donald <newtwen+github@gmail.com>2024-06-13 15:11:04 +0200
committerPaul Donald <newtwen+github@gmail.com>2024-06-13 15:11:04 +0200
commit37ea60da580490a4d8178134297152661f25151d (patch)
treeaf835d23fd67a57045e6a2d76527ff6b993a4bed /modules/luci-mod-system/htdocs/luci-static/resources/view
parent860b321e1352278552a060b28b43932e12ef9112 (diff)
Revert "luci-mod-system: Dropbear: remove custom flag values"
This reverts commit 43f60c3fad0672ed4cce54939d3c231a1f872a5e. Signed-off-by: Paul Donald <newtwen+github@gmail.com>
Diffstat (limited to 'modules/luci-mod-system/htdocs/luci-static/resources/view')
-rw-r--r--modules/luci-mod-system/htdocs/luci-static/resources/view/system/dropbear.js13
1 files changed, 10 insertions, 3 deletions
diff --git a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/dropbear.js b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/dropbear.js
index 24ed804413..45b9994cc6 100644
--- a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/dropbear.js
+++ b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/dropbear.js
@@ -15,7 +15,7 @@ return view.extend({
s.addbtntitle = _('Add instance');
o = s.option(form.Flag, 'enable', _('Enable Instance'), _('Enable <abbr title="Secure Shell">SSH</abbr> service instance'));
- o.default = true;
+ o.default = o.enabled;
o = s.option(widgets.NetworkSelect, 'Interface', _('Interface'), _('Listen only on the given interface or, if unspecified, on all'));
o.nocreate = true;
@@ -25,13 +25,20 @@ return view.extend({
o.placeholder = 22;
o = s.option(form.Flag, 'PasswordAuth', _('Password authentication'), _('Allow <abbr title="Secure Shell">SSH</abbr> password authentication'));
- o.default = true;
+ o.enabled = 'on';
+ o.disabled = 'off';
+ o.default = o.enabled;
o.rmempty = false;
o = s.option(form.Flag, 'RootPasswordAuth', _('Allow root logins with password'), _('Allow the <em>root</em> user to log in with password'));
- o.default = true;
+ o.enabled = 'on';
+ o.disabled = 'off';
+ o.default = o.enabled;
o = s.option(form.Flag, 'GatewayPorts', _('Gateway Ports'), _('Allow remote hosts to connect to local SSH forwarded ports'));
+ o.enabled = 'on';
+ o.disabled = 'off';
+ o.default = o.disabled;
return m.render();
}