mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
parent
453f515feb
commit
f744ca14e8
5 changed files with 37 additions and 12 deletions
|
|
@ -1081,13 +1081,28 @@ function printAuthentication()
|
|||
print('<form method="post">')
|
||||
print('<table class="table">')
|
||||
|
||||
-- Note: order must correspond to evaluation order in Ntop.cpp
|
||||
printLdapAuth()
|
||||
printRadiusAuth()
|
||||
printHttpAuth()
|
||||
printLocalAuth()
|
||||
local entries = subpage_active.entries
|
||||
|
||||
prefsInformativeField(i18n("notes"), i18n("prefs.auth_methods_order"))
|
||||
-- Note: order must correspond to evaluation order in Ntop.cpp
|
||||
if not entries.toggle_ldap_auth.hidden then
|
||||
printLdapAuth()
|
||||
end
|
||||
if not entries.toggle_radius_auth.hidden then
|
||||
printRadiusAuth()
|
||||
end
|
||||
if not entries.toggle_http_auth.hidden then
|
||||
printHttpAuth()
|
||||
end
|
||||
if not entries.toggle_local_auth.hidden then
|
||||
printLocalAuth()
|
||||
end
|
||||
|
||||
if not ntop.isnEdge() then
|
||||
prefsInformativeField(i18n("notes"), i18n("prefs.auth_methods_order"))
|
||||
else
|
||||
prefsInformativeField(i18n("notes"), i18n("nedge.authentication_gui_and_captive_portal",
|
||||
{product = product, url = ntop.getHttpPrefix() .. "/lua/pro/nedge/system_setup/captive_portal.lua"}))
|
||||
end
|
||||
|
||||
print('<tr><th colspan=2 style="text-align:right;"><button type="submit" class="btn btn-primary" style="width:115px" disabled="disabled">'..i18n("save")..'</button></th></tr>')
|
||||
print('</table>')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue