Since we are targeting students, we are going to give them the option to verify their .edu email. You're going to have to use nodemailer.
Tasks
[x] Add a boolean eduVerified field to the User model
[x] Add a verificationToken string field to the model
[x] Add a tokenExpiry field to the model
[x] create a POST /verify-edu-email route
[x] create a GET /verify-edu route
[x] create a GET /verification-status route
[ ] add a validation that will check that the email is an .edu address
[ ] create a function with crypto that will generate a verification token
[ ] create a function that will create the verification URL and send it
[ ] create a function that will check the verification status
Put routes in a file called emailVerificationRoutes.js in /server/routes
Put controllers in a file called emailVerificationController.js in /server/controllers
Put helper functions in /server/config
Put validations in a file called emailVerificationValidations.js in /server/validations
Since we are targeting students, we are going to give them the option to verify their .edu email. You're going to have to use nodemailer.
Tasks
Put routes in a file called emailVerificationRoutes.js in /server/routes Put controllers in a file called emailVerificationController.js in /server/controllers Put helper functions in /server/config Put validations in a file called emailVerificationValidations.js in /server/validations