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

Invitation Flow #55

Open
bonnieli opened this issue Nov 18, 2020 · 0 comments
Open

Invitation Flow #55

bonnieli opened this issue Nov 18, 2020 · 0 comments
Assignees

Comments

@bonnieli
Copy link
Contributor

Change link in email invitation to something similar to http://localhost:3000/[email protected] (sender user email)

  • Note the referral query parameter

Whenever someone visits that link, the frontend would be able to identify which link they clicked from and who referred them ([email protected])

Invitation Flow

  1. When a user sends this email, we first check if the email we're sending to already exists in our platform. If yes, no problem create an Invitation model
  2. If they don't exist, don't create a model but proceed in sending email

What happens if they're not part of the platform yet

  1. Save the referral email in a state
  2. First, in the /register route, on the frontend we want to identify if the user is already logged in.
  3. If logged in, redirect into /messenger
  4. If not logged in, we'll prompt you to sign up. When you submit the sign up form, you also pass in a referral attribute to the backend
  5. On the /signup controller if a referral is passed in on User creation, it will also create an invitation
@peacebonez peacebonez self-assigned this Nov 20, 2020
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

2 participants