-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
Description
When creating the user (signup page), add 2 features:
- Insert email, token and token expires into
VerificationTokentable .- identifier: email
- token: token
- expires: timestamp (24 hours?)
- send the 'email verification' email to the registered email.
- the email should contain a link to a page or endpoint (see which one is better) something like this
/api/verify?email=xxx&token=yyy
- the email should contain a link to a page or endpoint (see which one is better) something like this
The method to handle nodemailer sending the emails is done in /src/utils/verifyEmail.ts. Please rename this path and the function name as I think the name is misleading.
After user click the link, if everything is match and valid, redirect user to signin page. if not, redirect to 'unverified' page and allow to resend the new 'email verification' email
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
