luci-app-travelmate: WEP-fixes
[project/luci.git] / applications / luci-app-travelmate / luasrc / model / cbi / travelmate / wifi_edit.lua
index 086853171e4b51771d4b52a1903709b24d1341d5..6c0a3e186e295ee85d60b8af0699c42b2fb1c489 100644 (file)
@@ -48,6 +48,8 @@ if s ~= nil then
 
                        wkey = m:field(Value, "key", translate("Passphrase"))
                        wkey.datatype = "wepkey"
+                       wkey.password = true
+                       wkey.default = s.key
                elseif string.match(s.encryption, '^wpa') then
                        encr = m:field(ListValue, "encryption", translate("Encryption"))
                        encr:value("wpa", "WPA Enterprise")