Removed Restrictions for Email Domains and Updated Email Functionality to Use Resend.io #2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
I allowed any email to be registered. Earlier only emails within the whitelisted colleges were allowed to register. I have enabled anyone to register as long as it's a valid email ID.
I have made use of Resend's integration with SMTP and nodemailer to send emails directly to the user to verify their accounts, resend verification emails and reset password.
Motivation and Context
Hacker Application techx#167 Backend Engineer's tasks.
How Has This Been Tested
I tried dummy email's that I had to ensure that the functionality was working as expected.
I checked mongo db to see if values were being entered correctly.
I checked my emails for password rest and verification emails.
Ran a simple npm run test to make sure the endpoint is returning a 400 on using resend's SMTP.
Screenshots
Types of changes
Checklist