Skip to content

Conversation

@AbhiDoshi2000
Copy link
Collaborator

Email Verification Feature

This PR adds:

Email registration with validation
Token-based verification (15-min expiry)
Confirmation email after successful verification
Duplicate prevention for already verified users
/status/{email} endpoint to check verification state

Setup Instructions
To test locally:

git fetch origin
git checkout feature/email-verification

Then install dependencies:
pip install -r requirements.txt

And run tests:
python -m pytest tests/

How to Test
Option 1: Postman

POST /register → register with an email
Click the email link to verify
GET /status/{email} → check if verified

Option 2: Pytest
python -m pytest tests/

Copy link
Owner

@James-Cheaper James-Cheaper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this would probably take precedence since it updates the gitignore. Will wait for the django email validator to keep consistency across the application

jeanahan pushed a commit that referenced this pull request Jul 4, 2025
* Create python-package-conda.yml

* Update python-package-conda.yml

* Create environment.yml

* Update environment.yml

spacing

* replaced pytest with unittest

* created test folder to build

* checking for folder directory

* neccessary file added and path added

* removed comments and added init file for workflow

* directly testing the file

* hardcoding path

* troubleshooting
Copy link
Collaborator

@Urbanmisfit90 Urbanmisfit90 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've tested the full flow (registration, email sending, verification link click, and status check) in Postman, and it's working as expected.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants