Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting password returns some text before correct response #8934

Open
lucaderi opened this issue Jan 31, 2025 · 0 comments
Open

Setting password returns some text before correct response #8934

lucaderi opened this issue Jan 31, 2025 · 0 comments
Assignees
Labels
Low-Priority Bug Ready to Test a feedback is needed on a proposal or implementation

Comments

@lucaderi
Copy link
Member

curl -X 'POST' 'http://localhost:9002/lua/rest/v2/edit/ntopng/user.lua' -H 'accept: application/json' -H 'Content-Type: application/json' -d '{"username":"admin", "password":"admin123", "confirm_password":"xxxx"}'

{"rc":-25,"rc_str_hr":"Unknown","rc_str":"EDIT_USER_FAILED","rsp":[]} <---- BUG
HTTP/1.1 200 OK
Cache-Control: max-age=0, no-cache, no-store
Server: ntopng 6.2.241209 [Ubuntu 20.04.6 LTS [x86_64]]
Set-Cookie: tzname=UTC; path=/ HttpOnly; SameSite=lax
Pragma: no-cache
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
Content-Type: application/json
Last-Modified: Wed, 12 December 2024 18:14:04 GMT
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, HEAD
Set-Cookie: session_9002_0=; max-age=3600; path=/; HttpOnly; SameSite=lax
Set-Cookie: timezone=0; path=/ HttpOnly; SameSite=lax

{"rc":0,"rc_str_hr":"Success","rc_str":"OK","rsp":[]}

@MatteoBiscosi MatteoBiscosi added Ready to Test a feedback is needed on a proposal or implementation and removed In Progress labels Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Low-Priority Bug Ready to Test a feedback is needed on a proposal or implementation
Projects
None yet
Development

No branches or pull requests

3 participants