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
|
|
@ -135,7 +135,22 @@ function system_config:getWirelessConfiguration()
|
|||
end
|
||||
|
||||
function system_config:setWirelessConfiguration(config)
|
||||
if config.enabled then
|
||||
if isEmptyString(config.ssid) then
|
||||
return false
|
||||
end
|
||||
|
||||
if not isEmptyString(config.passphrase) then
|
||||
local len = string.len(config.passphrase)
|
||||
if len < 8 or len > 63 then
|
||||
return false
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
self.config.wireless = config
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- ##############################################
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue