mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
parent
1f24dec3e3
commit
b117e8a23a
178 changed files with 6639 additions and 124 deletions
|
|
@ -248,7 +248,7 @@ print [[
|
|||
$(`#btn-generate_token`).click(async function(e) {
|
||||
|
||||
const user = $(`#input-username`).val() || loggedUser;
|
||||
const response = await fetch(`${http_prefix}/lua/rest/v1/create/ntopng/api_token.lua`, {
|
||||
const response = await fetch(`${http_prefix}/lua/rest/v2/create/ntopng/api_token.lua`, {
|
||||
method: 'POST',
|
||||
body: JSON.stringify({username: user, csrf: ']] print(ntop.getRandomCSRFValue()) print [['}),
|
||||
headers: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue