* luci/app/ddns: obfuscate password fields
[project/luci.git] / applications / luci-ddns / luasrc / model / cbi / ddns / ddnsmini.lua
index 51bebb6..2a91eda 100644 (file)
@@ -29,7 +29,9 @@ svc:value("freedns.afraid.org")
 
 s:option(Value, "domain", translate("hostname")).rmempty = true
 s:option(Value, "username", translate("username")).rmempty = true
 
 s:option(Value, "domain", translate("hostname")).rmempty = true
 s:option(Value, "username", translate("username")).rmempty = true
-s:option(Value, "password", translate("password")).rmempty = true
+pw = s:option(Value, "password", translate("password"))
+pw.rmempty = true
+pw.password = true
 
 s.defaults.ip_source = "network"
 s.defaults.ip_network = "wan"
 
 s.defaults.ip_source = "network"
 s.defaults.ip_network = "wan"
@@ -47,4 +49,4 @@ unit:value("minutes", "min")
 unit:value("hours", "h")
 
 
 unit:value("hours", "h")
 
 
-return m
\ No newline at end of file
+return m