From 4c322360a4029d9c37baacc9552bcaef573d1171 Mon Sep 17 00:00:00 2001 From: sbwml Date: Wed, 6 Nov 2024 04:46:29 +0800 Subject: [PATCH] luci-app-webdav: hide plaintext password Signed-off-by: sbwml --- htdocs/luci-static/resources/view/webdav.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/luci-static/resources/view/webdav.js b/htdocs/luci-static/resources/view/webdav.js index f5d0d87..40341d2 100644 --- a/htdocs/luci-static/resources/view/webdav.js +++ b/htdocs/luci-static/resources/view/webdav.js @@ -80,9 +80,10 @@ return view.extend({ o.default = 6086; 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.password = true; o = s.option(form.Value, 'root_dir', _('Root Directory')); o.default = '/mnt';