mirror of https://github.com/aredn/aredn.git
allow zero length wan wifi client passphrase
This commit is contained in:
parent
480185bd0b
commit
4e6b68c612
|
@ -682,7 +682,7 @@ if parms.button_save then
|
|||
end
|
||||
end
|
||||
if wifi3_enable == "1" then
|
||||
if #wifi3_key < 8 or #wifi3_key > 64 then
|
||||
if #wifi3_key ~= 0 and (#wifi3_key < 8 or #wifi3_key > 64) then
|
||||
err("WAN Wifi Client Password must be between 8 and 64 characters")
|
||||
end
|
||||
if wifi3_key:match("'") or wifi3_ssid:match("'") then
|
||||
|
|
Loading…
Reference in New Issue