Added fixes to avoid users to be manipulated with invalid CSRF token

This commit is contained in:
Luca 2017-01-12 10:10:20 -08:00
parent ada218c00e
commit 1b2ceac8f5
4 changed files with 8 additions and 0 deletions

View file

@ -8,6 +8,7 @@ require "lua_utils"
sendHTTPHeader('application/json')
if(_GET["csrf"] ~= nil) then
username = _GET["username"]
host_role = _GET["host_role"]
networks = _GET["networks"]
@ -40,3 +41,4 @@ if(allowed_interface ~= nil) then
end
print ("{ \"result\" : 0, \"message\" : \"Parameters Updated\" }")
end