opportunity-hack / quill

📝 Registration, for hackathons!
https://medium.com/hackmit-stories/quill-an-open-source-hackathon-registration-system-91f3a06d22a2
GNU Affero General Public License v3.0
1 stars 8 forks source link

Removed Restrictions for Email Domains and Updated Email Functionality to Use Resend.io #2

Closed Ashmitha-art closed 4 months ago

Ashmitha-art commented 4 months ago
  1. Modify the validation logic to allow any email domain.
  2. Integrate Resend.io API for email services:
  3. Install necessary Resend.io API client libraries.
  4. Update configuration files to include Resend.io API keys.
  5. Modify the email sending logic to use Resend.io API endpoints.
  6. 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

Screenshot 2024-07-01 at 8 29 41 PM Screenshot 2024-07-01 at 8 34 36 PM Screenshot 2024-07-01 at 9 54 43 PM Screenshot 2024-07-01 at 9 54 14 PM Screenshot 2024-07-01 at 9 54 27 PM

Types of changes

Checklist

gregv commented 4 months ago

Hey @Ashmitha-art - again, super challenging to review code with this many changes - some are formatting, and some are not. image