mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-02 00:40:10 +00:00
Harden HTTP session checks and remove user cookie
This commit is contained in:
parent
e7a7ffd65c
commit
8a7ead5924
11 changed files with 104 additions and 106 deletions
|
|
@ -464,7 +464,7 @@ print[[
|
|||
</ul>
|
||||
</li>]]
|
||||
|
||||
if(_COOKIE["user"] ~= nil and _COOKIE["user"] ~= ntop.getNologinUser()) then
|
||||
if(_SESSION["user"] ~= nil and _SESSION["user"] ~= ntop.getNologinUser()) then
|
||||
print [[
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
|
||||
|
|
@ -474,7 +474,7 @@ print [[
|
|||
|
||||
print[[<li><a href="]]
|
||||
print(ntop.getHttpPrefix())
|
||||
print [[/lua/logout.lua"><i class="fa fa-sign-out"></i> ]] print(i18n("login.logout_user_x", {user=_COOKIE["user"]})) print [[</a></li>]]
|
||||
print [[/lua/logout.lua"><i class="fa fa-sign-out"></i> ]] print(i18n("login.logout_user_x", {user=_SESSION["user"]})) print [[</a></li>]]
|
||||
|
||||
print[[
|
||||
</ul>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue