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

type:'login' is ignored on every request #3

Open
pabgn opened this issue Apr 18, 2014 · 0 comments
Open

type:'login' is ignored on every request #3

pabgn opened this issue Apr 18, 2014 · 0 comments

Comments

@pabgn
Copy link

pabgn commented Apr 18, 2014

Although I have configured everything as specified in the installation guide, I keep sending cURLs to my server with the specified type:'login' and the data needed, but it just tries to store a new user, ignoring I want to login. I don't know whether I need to set any other configuration in my resources.py.
Here it is my cURL:
curl --dump-header -H "Accept: application/json" -H "Content-Type: application/json" -X POST --data '{"type":"login", "username":"pablo", "password":"pass"}' 'http://localhost/api/v1/user/?username=root&api_key=9a7f7c7d5489dddcbd6700fa6ab5345f681142b5&format=json'

Thanks!

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