* luci/modules/admin-full: convert cert fields to file upload fields in wifi configuration
This commit is contained in:
parent
70de30251b
commit
a67aea40a0
1 changed files with 3 additions and 3 deletions
|
@ -121,7 +121,7 @@ function network.write(self, section, value)
|
||||||
if not m.uci:get("network", value) then
|
if not m.uci:get("network", value) then
|
||||||
-- avoid "value not defined in enum" because network is not known yet
|
-- avoid "value not defined in enum" because network is not known yet
|
||||||
s.override_scheme = true
|
s.override_scheme = true
|
||||||
|
|
||||||
m:chain("network")
|
m:chain("network")
|
||||||
m.uci:set("network", value, "interface")
|
m.uci:set("network", value, "interface")
|
||||||
Value.write(self, section, value)
|
Value.write(self, section, value)
|
||||||
|
@ -310,11 +310,11 @@ if hwtype == "atheros" or hwtype == "mac80211" then
|
||||||
eaptype:depends({mode="sta", encryption="wpa"})
|
eaptype:depends({mode="sta", encryption="wpa"})
|
||||||
eaptype:depends({mode="sta", encryption="wpa2i"})
|
eaptype:depends({mode="sta", encryption="wpa2i"})
|
||||||
|
|
||||||
cacert = s:option(Value, "ca_cert", translate("a_w_cacert"))
|
cacert = s:option(FileUpload, "ca_cert", translate("a_w_cacert"))
|
||||||
cacert:depends({mode="sta", encryption="wpa"})
|
cacert:depends({mode="sta", encryption="wpa"})
|
||||||
cacert:depends({mode="sta", encryption="wpa2i"})
|
cacert:depends({mode="sta", encryption="wpa2i"})
|
||||||
|
|
||||||
privkey = s:option(Value, "priv_key", translate("a_w_tlsprivkey"))
|
privkey = s:option(FileUpload, "priv_key", translate("a_w_tlsprivkey"))
|
||||||
privkey:depends({mode="sta", eap_type="TLS", encryption="wpa2i"})
|
privkey:depends({mode="sta", eap_type="TLS", encryption="wpa2i"})
|
||||||
privkey:depends({mode="sta", eap_type="TLS", encryption="wpa"})
|
privkey:depends({mode="sta", eap_type="TLS", encryption="wpa"})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue