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

unauthenticated POST /auth/change_password returns {"ok":false,"why":"nick_or_email_missing"} #97

Open
indr opened this issue Aug 2, 2016 · 0 comments

Comments

@indr
Copy link
Contributor

indr commented Aug 2, 2016

$ curl -H 'Content-Type: application/json' \
> -d '{"password":"p","repeat":"p","nick":"email1","email":"email1"}' -v \
> http://localhost:3000/auth/change_password
*   Trying ::1...
* Connected to localhost (::1) port 3000 (#0)
> POST /auth/change_password HTTP/1.1
> Host: localhost:3000
> User-Agent: curl/7.47.1
> Accept: */*
> Content-Type: application/json
> Content-Length: 62
> 
* upload completely sent off: 62 out of 62 bytes
< HTTP/1.1 200 OK
< X-Powered-By: Express
< Content-Type: application/json
< Cache-Control: private, max-age=0, no-cache, no-store
< Content-Length: 42
< Date: Mon, 01 Aug 2016 12:31:40 GMT
< Connection: keep-alive
< 
* Connection #0 to host localhost left intact
{"ok":false,"why":"nick_or_email_missing"}

The error message is misleading, because email and/or nick is sent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant