* luci/app/ddns: obfuscate password fields
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 23 Oct 2008 17:50:06 +0000 (17:50 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 23 Oct 2008 17:50:06 +0000 (17:50 +0000)
applications/luci-ddns/luasrc/model/cbi/ddns/ddns.lua
applications/luci-ddns/luasrc/model/cbi/ddns/ddnsmini.lua

index a8ba0c73c5cfd221b9fa1200243cb6615eb7de7f..45a8a3965c3747d1662c0297c4dc89c2ff5786bf 100644 (file)
@@ -31,7 +31,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, "password", translate("password")).rmempty = true
+pw = s:option(Value, "password", translate("password"))
+pw.rmempty = true
+pw.password = true
 
 src = s:option(ListValue, "ip_source")
 src:value("network", translate("network"))
@@ -69,4 +71,4 @@ unit:value("minutes", "min")
 unit:value("hours", "h")
 
 
-return m
\ No newline at end of file
+return m
index 51bebb6e6649fc024a30155002d318f262ce84ec..2a91eda824c14e5362d0c7981b56cfad565c2022 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, "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"
@@ -47,4 +49,4 @@ unit:value("minutes", "min")
 unit:value("hours", "h")
 
 
-return m
\ No newline at end of file
+return m