fix/verification#69
Merged
krishnapaljadeja merged 5 commits intogdg-charusat:mainfrom Mar 1, 2026
Merged
Conversation
Contributor
✅ PR Validation PassedHey @mitesh006! Your PR looks good. Here is what we found:
A maintainer will review your PR within 24–48 hours. Stay responsive to feedback!
|
Contributor
|
hey @mitesh006 please solve conflict, then run project, solve if any error persists and then commit |
Contributor
|
@mitesh006 can you please remove package-lock.json from commit and rebase it.thankyou |
1b5f71c to
516bc0b
Compare
516bc0b to
65a1f94
Compare
Contributor
🎉 PR Merged — Points Awarded!Congratulations @mitesh006! Your contribution has been merged.
The central leaderboard has been updated. Keep contributing!
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Team Number : Team 126
Description
This PR implements email verification during user registration.
Users are now required to verify their email before being allowed to log in. A verification token is generated at registration, sent via email, and validated through a dedicated verification endpoint.
Login is restricted for users whose email has not been verified.
Related Issue
Closes #64
Type of Change
Changes Made
isEmailVerified,emailVerificationToken, andemailVerificationExpiresfields to the User modelcryptoemail.servicesendVerificationEmailfunction/api/auth/verify-emailendpointAppErrorScreenshots (if applicable)
Before:
Users could log in immediately after registration without verifying their email.
After:





Users must verify their email before logging in. Login attempts before verification return a 403 error.
Testing
npm run dev)Checklist
Additional Notes
Frontend currently auto-logs in users after registration. A separate frontend issue has been raised to update the registration flow to align with email verification requirements.