summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-ddns
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2008-10-23 17:50:06 +0000
committerJo-Philipp Wich <jow@openwrt.org>2008-10-23 17:50:06 +0000
commit222fe69ac6e3e82252296228b0e7877c886dae6c (patch)
treeef7af8e78843d1be50fe41032aa5f02ddaed0038 /applications/luci-ddns
parent38319cfaa58144207570b65d8bfe287c1e9cc3c1 (diff)
* luci/app/ddns: obfuscate password fields
Diffstat (limited to 'applications/luci-ddns')
-rw-r--r--applications/luci-ddns/luasrc/model/cbi/ddns/ddns.lua6
-rw-r--r--applications/luci-ddns/luasrc/model/cbi/ddns/ddnsmini.lua6
2 files changed, 8 insertions, 4 deletions
diff --git a/applications/luci-ddns/luasrc/model/cbi/ddns/ddns.lua b/applications/luci-ddns/luasrc/model/cbi/ddns/ddns.lua
index a8ba0c73c..45a8a3965 100644
--- a/applications/luci-ddns/luasrc/model/cbi/ddns/ddns.lua
+++ b/applications/luci-ddns/luasrc/model/cbi/ddns/ddns.lua
@@ -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
diff --git a/applications/luci-ddns/luasrc/model/cbi/ddns/ddnsmini.lua b/applications/luci-ddns/luasrc/model/cbi/ddns/ddnsmini.lua
index 51bebb6e6..2a91eda82 100644
--- a/applications/luci-ddns/luasrc/model/cbi/ddns/ddnsmini.lua
+++ b/applications/luci-ddns/luasrc/model/cbi/ddns/ddnsmini.lua
@@ -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