mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Check passphrase length in the UI form. Add ieee80211n/ieee80211ac.
This commit is contained in:
parent
eb590a616d
commit
3a5fa4564a
4 changed files with 41 additions and 4 deletions
|
|
@ -32,8 +32,10 @@ if _POST["wifi_enabled"] ~= nil then
|
|||
if _POST["wifi_ssid"] ~= nil then wifi_config.ssid = _POST["wifi_ssid"] end
|
||||
if _POST["wpa_passphrase"] ~= nil then wifi_config.passphrase = _POST["wpa_passphrase"] end
|
||||
|
||||
sys_config:setWirelessConfiguration(wifi_config)
|
||||
sys_config:save()
|
||||
local success = sys_config:setWirelessConfiguration(wifi_config)
|
||||
if success then
|
||||
sys_config:save()
|
||||
end
|
||||
end
|
||||
|
||||
local function print_wifi_page_body()
|
||||
|
|
@ -80,7 +82,9 @@ local function print_wifi_page_body()
|
|||
nil,
|
||||
nil,
|
||||
{
|
||||
required = true
|
||||
required = true,
|
||||
minlength = 8,
|
||||
maxlength = 63,
|
||||
}
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue