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

REST End point for signup via iPhone/Android Application #33

Open
wolfeidau opened this issue Apr 1, 2014 · 3 comments
Open

REST End point for signup via iPhone/Android Application #33

wolfeidau opened this issue Apr 1, 2014 · 3 comments

Comments

@wolfeidau
Copy link
Contributor

Need to provide a method to enable signup via a mobile application.

@chico
Copy link
Contributor

chico commented Apr 2, 2014

There's the /auth/register API endpoint:

curl -X POST -H 'Content-Type: application/json' 'https://staging-id.ninja.is/auth/register' -d '{"name":"Jane Doe", "email":"jane.doe@example.com", "password":"526dChM|3p"}'

Note that because auth.confirm has been enabled in the config on stage (i.e. user has to confirm their email address before allowed to login), this will return {"ok":false,"why":"user-not-confirmed"}. If auth.confirm is set to false then this would return the user details. This is handled by the app so that it redirects the user to a 'please confirm your email address' page after it has received a 'user-not-confirmed' response. The mobile app would have to do the same.

If the above resolves this issue then please close the ticket :)

@wolfeidau
Copy link
Contributor Author

Ah OK yeah thanks for clarification.

This was added just to keep tabs on internal stuff we have planned, anything with a label enhancement doesn't need to be actioned.

@chico
Copy link
Contributor

chico commented Apr 2, 2014

+1 :)

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

No branches or pull requests

2 participants