Feature: Verification emails
When you create an account, an email with the verification code gets sent.
You are redirected to a verification page, where you can enter the code, submit and your account gets marked as verified.
The page after verification is not implemented.
To do this, I:
- Added a hidden input to the code input that contains the actual value
- Set up mail sending using AWS SES (over SMTP)
- Added a flags column to users, and created a flagset with a verified and admin flag
- Created verification sessions, which store the code, an expiry date and a unique identifier
Next, I’ll implement signing in (with sessions)
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.