luci-mod-network: wireless.js: prompt for passphrase when joining SAE net
authorJo-Philipp Wich <jo@mein.io>
Tue, 24 Sep 2019 05:24:11 +0000 (07:24 +0200)
committerJo-Philipp Wich <jo@mein.io>
Tue, 24 Sep 2019 05:24:11 +0000 (07:24 +0200)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js

index d0287fe1afc3ba82eb663831a28d616ce257af98..28250856121b717d2adac81b60913870546e08e2 100644 (file)
@@ -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() {