I think this is a basic use case that almost everyone working with Phoenix 1.6 will have.
The idea is to allow users to create accounts and to have them click on a link sent to their email address to verify their email as part of creating their account.
I can’t seem to find a simple tutorial that walks me through setting this up, so I guess I’m going to have to write one myself.
The first order of business for me is to get a completely basic Phoenix 1.6 app working with the standard authentication system added from mix phx.gen.auth — Phoenix v1.6.0-rc.0 – this is dead simple and already accomplished.
The second order of business is for me to get the email confirmation system working using SendGrid, or any other email service.
The third order of business is for me to:
- post the working example here https://github.com/LiterateLabs/phoenix_1.6_user_auth_with_email_confirmation_example
- show it deployed and functioning on Fly.io using their free tier
- explain a couple steps in the README and write a 500-word tutorial that I can put on my blog.
I will appreciate assistance.