luci-app-webdav: hide plaintext password

Signed-off-by: sbwml <admin@cooluc.com>
This commit is contained in:
sbwml 2024-11-06 04:46:29 +08:00
parent 7849f05687
commit 4c322360a4

View File

@ -80,9 +80,10 @@ return view.extend({
o.default = 6086; o.default = 6086;
o.rmempty = false; o.rmempty = false;
o = s.option(form.Value, 'username', _('Username'), _("Leave blank to disable auth.")); o = s.option(form.Value, 'username', _('Username'));
o = s.option(form.Value, 'password', _('Password'), _("Leave blank to disable auth.")); o = s.option(form.Value, 'password', _('Password'), _("Leave blank to disable auth."));
o.password = true;
o = s.option(form.Value, 'root_dir', _('Root Directory')); o = s.option(form.Value, 'root_dir', _('Root Directory'));
o.default = '/mnt'; o.default = '/mnt';