diff options
author | Dirk Brenken <dev@brenken.org> | 2019-10-22 21:47:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-22 21:47:12 +0200 |
commit | 5bb7d55ed166ac734c34adc702fb545cb4346073 (patch) | |
tree | 33cab738c7b5faed28f3bc7ede4d1bc554e86f6c /applications | |
parent | 2b7ca79118fbfc7b8ada627a11ee63e6ec95bccb (diff) | |
parent | 2914547347ef7a2842878a895d6fc233a9212cca (diff) |
Merge pull request #3230 from dibdot/travelmate
luci-app-travelmate: fix logical glitch
Diffstat (limited to 'applications')
-rw-r--r-- | applications/luci-app-travelmate/luasrc/model/cbi/travelmate/wifi_edit.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/applications/luci-app-travelmate/luasrc/model/cbi/travelmate/wifi_edit.lua b/applications/luci-app-travelmate/luasrc/model/cbi/travelmate/wifi_edit.lua index ef97e26a2..086853171 100644 --- a/applications/luci-app-travelmate/luasrc/model/cbi/travelmate/wifi_edit.lua +++ b/applications/luci-app-travelmate/luasrc/model/cbi/travelmate/wifi_edit.lua @@ -177,8 +177,7 @@ function wssid.write(self, section, value) uci:set("wireless", m.hidden.cfg, "client_cert", clientcert:formvalue(section) or "") uci:set("wireless", m.hidden.cfg, "priv_key", privkey:formvalue(section) or "") uci:set("wireless", m.hidden.cfg, "priv_key_pwd", privkeypwd:formvalue(section) or "") - end - if encr:formvalue(section) ~= "owe" then + elseif encr:formvalue(section) ~= "owe" then uci:set("wireless", m.hidden.cfg, "key", wkey:formvalue(section) or "") end if ciph and ciph:formvalue(section) ~= "auto" then |