-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Documentation: Logging in #15
Comments
What do you mean by public site? Here is the documentation for user authentication: http://strapi.io/documentation/users |
Using POST /auth/local/register I get back the newly created user and jwt.
I get back a 400: |
By public site I mean, not the admin section.. The project root index.html. Script:
// executed after user is created, 400 response
|
Ok I've figured it out. The documentation http://strapi.io/documentation/users#local-login says /auth/local/login but when I viewed the network request of logging in from admin it is actually /auth/local |
Good catch, @sylvainlap just made a pull request to update the documentation : strapi/strapi-docs#2 |
Would be great to show an example of logging a user in from the public site. I see the admin section has a full fledged angular application and 1000's of lines of code to do this. It's still not clear the mechanism to create a session.
Is it simply a POST to /login with a response that should be added as cookie?
The text was updated successfully, but these errors were encountered: