Harden HTTP session checks and remove user cookie

This commit is contained in:
emanuele-f 2018-08-21 18:16:54 +02:00
parent e7a7ffd65c
commit 8a7ead5924
11 changed files with 104 additions and 106 deletions

View file

@ -18,7 +18,7 @@ if(user_group == "administrator") then
old_password = ""
else
-- Check to avoid that this user changes password for other users
username = _COOKIE["user"]
username = _SESSION["user"]
end
if((username == nil) or (old_password == nil) or (new_password == nil) or (confirm_new_password == nil)) then