Skip to content

Conversation

divysaxena24
Copy link
Contributor

Description

This PR adds server-side email validation

Changes included:

  • Adds a CHECK constraint using regex for valid email format ([email protected]).
  • Optional CHECK constraint to reject disposable emails (mailinator.com, tempmail.com, etc.).
  • Ensures all emails are unique and not null.
  • Provides a centralized, database-level validation that complements front-end checks.

Type of Change

  • New Feature
  • Bug Fix
  • Documentation Update
  • Refactor

Motivation / Use Case

  • Current validation relies on front-end checks only (JavaScript/HTML).
  • Server-side validation ensures data integrity and prevents bypassing the frontend.
  • Provides consistent validation rules for all clients submitting emails.
  • Enhances security and reliability of the subscription system.

Explanation:

  • email_format_check: Ensures the email matches a proper pattern.
  • no_disposable_email: Rejects known disposable email domains.
  • UNIQUE: Prevents duplicate email entries.
  • NOT NULL: Ensures an email is always provided.

Screenshots / Demo

Screenshot 2025-09-26 015706

Checklist

  • Code compiles correctly
  • Follows repository coding conventions
  • Contributing Guidelines read

Fixes issue #540

Copy link

vercel bot commented Sep 25, 2025

@divysaxena24 is attempting to deploy a commit to the recode Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

Thank you for submitting your pull request! 🙌 We'll review it as soon as possible. The estimated time for response is 5–8 hrs.

In the meantime, please provide all necessary screenshots and make sure you run - npm build run , command and provide a screenshot, a video recording, or an image of the update you made below, which helps speed up the review and assignment. If you have questions, reach out to LinkedIn. Your contributions are highly appreciated!😊

Note: I maintain the repo issue every day twice at 8:00 AM IST and 9:00 PM IST. If your PR goes stale for more than one day, you can tag and comment on this same issue by tagging @sanjay-kv.

We are here to help you on this journey of open source. Consistent 20 contributions are eligible for sponsorship 💰

🎁 check our list of amazing people we sponsored so far: GitHub Sponsorship. ✨

📚Your perks for contribution to this community 👇🏻

  1. Get free Consultation use code recode50 to get free: Mentorship for free.

  2. Get the Ebook for free use code recode at checkout: Data Science cheatsheet for Beginners.

  3. Check out this weekly Newsletter: Sanjay's Newsletter.

If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊

@sanjay-kv
Copy link
Member

@divysaxena24 can you fix the conflicts please. may be pull and push will do here.

@Adez017
Copy link
Member

Adez017 commented Sep 29, 2025

Any Updates on this @divysaxena24

@Adez017 Adez017 added the recode this is label for leaderboard label Sep 29, 2025
Copy link

github-actions bot commented Oct 3, 2025

Synced data from Linked Issues

Labels:

  • enhancement
  • gssoc25
  • level 2

Assignees:

  • divysaxena24

Milestones:

  • recode:launch 3.0

Copy link

vercel bot commented Oct 3, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
recode-website Error Error Oct 3, 2025 5:25am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc25 level 2 30 points recode this is label for leaderboard

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants