mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Move user group information into the session
This fixes issues and inconsistencies when the same user logins from different authenticators at the same time Fixes #2212
This commit is contained in:
parent
6dcc996198
commit
f65c618b3f
14 changed files with 191 additions and 228 deletions
|
|
@ -13,8 +13,9 @@ local old_password = _POST["old_password"]
|
|||
local new_password = _POST["new_password"]
|
||||
local confirm_new_password = _POST["confirm_password"]
|
||||
|
||||
user_group = ntop.getUserGroup()
|
||||
if(user_group == "administrator") then
|
||||
local is_admin = isAdministrator()
|
||||
|
||||
if(is_admin) then
|
||||
old_password = ""
|
||||
else
|
||||
-- Check to avoid that this user changes password for other users
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue