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

join ohmlet via link in email for new account causes a 404 #7

Open
jshslsky opened this issue Jun 3, 2014 · 0 comments
Open

join ohmlet via link in email for new account causes a 404 #7

jshslsky opened this issue Jun 3, 2014 · 0 comments

Comments

@jshslsky
Copy link

jshslsky commented Jun 3, 2014

When the user clicks an ohmlet invite link in their email client, the app is supposed to intercept the link and perform some steps with the server.

If the user does not have an account, let the user create an account using the account creation screen or google. If they are creating an ohmage account, include the user_invitation_id in the POST if the user does not change the email address from what is in the invitation link. The user_invitation_id causes the email verification step to be skipped.

If the user is logged out and logs in or if the user is already logged in, the app should join the user to the ohmlet by parsing the join link and POSTing to /ohmlets/<ohmlet_id>/members?ohmlet_invitation_id=<the_invitation_id> with the following JSON object as the body

{ 
    "member_id" : "the users ohmage ID",
    "role" : "member" 
}

The use's authentication information should also be sent in the Authorization header.

@jshslsky jshslsky added this to the beta milestone Jun 3, 2014
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