Modify the validation logic to allow any email domain.
Integrate Resend.io API for email services:
Install necessary Resend.io API client libraries.
Update configuration files to include Resend.io API keys.
Modify the email sending logic to use Resend.io API endpoints.
Write tests to verify email functionality works as expected with Resend.io.
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 #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
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[x] Breaking change (fix or feature that would cause existing functionality to change)
Checklist
[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
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 #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