mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
parent
7c48b3388c
commit
48316d5067
5 changed files with 76 additions and 11 deletions
|
|
@ -51,8 +51,11 @@ if(haveAdminPrivileges()) then
|
|||
if value["allow_pcap_download"] then
|
||||
print(' "allow_pcap_download": true,\n')
|
||||
end
|
||||
|
||||
local api_token = ntop.getUserAPIToken(key) or ""
|
||||
|
||||
print(' "username": "'..key..'",\n')
|
||||
print(' "api_token": "' ..api_token.. '",\n')
|
||||
print(' "password": "'..value["password"]..'",\n')
|
||||
print(' "full_name": "'..value["full_name"]..'",\n')
|
||||
print(' "group": "'..value["group"]..'"\n')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue