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

feat: email sign up confirmation #32

Merged
merged 9 commits into from
Jan 9, 2024
Merged

Conversation

nicolasauler
Copy link
Owner

@nicolasauler nicolasauler commented Jan 8, 2024

Sign up is now a db transaction.

Email is only sent if the insert to the db would work.
But insert is only committed if the email is sent correctly.

Bug: I think the mail provider is changing the href url. I'm not comfy with that, because they might be wanting to track my users.

Closes #23

Now, sign up is a transaction with the db.
If insert works, and email is sent, it is commited.
If it works but mail does not, it is rolled back.
TODO: add database_url to circle ci env variables
TODO: refactor functions
TODO: make html returns
TODO: resend email (and refresh token and expiry)
@nicolasauler nicolasauler mentioned this pull request Jan 9, 2024
@nicolasauler nicolasauler merged commit 5ccb93b into main Jan 9, 2024
3 of 4 checks passed
@nicolasauler nicolasauler deleted the send-confirmation-mail branch January 9, 2024 20:55
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

Successfully merging this pull request may close these issues.

feat: add user email confirmation for sign up
1 participant