mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Use POST requests when required
This commit is contained in:
parent
910fdcdc4a
commit
397d525d85
25 changed files with 282 additions and 451 deletions
|
|
@ -8,9 +8,8 @@ require "lua_utils"
|
|||
|
||||
sendHTTPHeader('text/html; charset=iso-8859-1')
|
||||
|
||||
if(_GET["csrf"] ~= nil) then
|
||||
if(haveAdminPrivileges()) then
|
||||
username = _GET["username"]
|
||||
username = _POST["username"]
|
||||
|
||||
if(username == nil) then
|
||||
print ("{ \"result\" : -1, \"message\" : \"Invalid parameters\" }")
|
||||
|
|
@ -23,4 +22,3 @@ if(haveAdminPrivileges()) then
|
|||
print ("{ \"result\" : -1, \"message\" : \"Error deleting user\" }")
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue