From: Jo-Philipp Wich Date: Tue, 24 Sep 2019 05:24:11 +0000 (+0200) Subject: luci-mod-network: wireless.js: prompt for passphrase when joining SAE net X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=4d3d23b5e986ddd99269c07286e1e8967033c274;p=project%2Fluci.git luci-mod-network: wireless.js: prompt for passphrase when joining SAE net Signed-off-by: Jo-Philipp Wich --- diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js index d0287fe1af..2825085612 100644 --- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js +++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js @@ -1793,7 +1793,7 @@ return L.view.extend({ s2 = m2.section(form.NamedSection, '_new_'), enc = L.isObject(bss.encryption) ? bss.encryption : null, is_wep = (enc && Array.isArray(enc.wep)), - is_psk = (enc && Array.isArray(enc.wpa) && Array.isArray(enc.authentication) && enc.authentication[0] == 'psk'), + is_psk = (enc && Array.isArray(enc.wpa) && L.toArray(enc.authentication).filter(function(a) { return a == 'psk' || a == 'sae' })), replace, passphrase, name, zone; s2.render = function() {