mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-02 17:00:10 +00:00
parent
f5afe9ecdd
commit
ea1c60c99c
12 changed files with 33 additions and 17 deletions
|
|
@ -21,7 +21,7 @@ local measurement = _POST["measurement"]
|
|||
local rv = {}
|
||||
|
||||
local function reportError(msg)
|
||||
print(json.encode({ error = msg, success = false, csrf = ntop.getRandomCSRFValue() }))
|
||||
print(json.encode({ error = msg, success = false}))
|
||||
end
|
||||
|
||||
local function isValidHostMeasurementCombination(host, measurement)
|
||||
|
|
@ -165,5 +165,4 @@ end
|
|||
-- ################################################
|
||||
|
||||
rv.success = true
|
||||
rv.csrf = ntop.getRandomCSRFValue()
|
||||
print(json.encode(rv))
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ if not haveAdminPrivileges() then
|
|||
end
|
||||
|
||||
local result = {}
|
||||
result.csrf = ntop.getRandomCSRFValue()
|
||||
|
||||
sendHTTPContentTypeHeader('application/json')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue