mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Add interface check in captive portal login
This commit is contained in:
parent
f32182d1e4
commit
ffa39896eb
4 changed files with 34 additions and 8 deletions
|
|
@ -51,7 +51,7 @@ local to_skip = (currentPage-1) * perPage
|
|||
|
||||
local vals = {}
|
||||
for key, value in pairs(users_list) do
|
||||
if captivePortal and value["group"] ~= "captive_portal" then
|
||||
if captivePortal and ((value["group"] ~= "captive_portal") or (value["allowed_ifname"] ~= ifname)) then
|
||||
goto continue
|
||||
elseif not captivePortal and value["group"] == "captive_portal" then
|
||||
goto continue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue