Skip to content

feat: Add email verification feature#2

Open
EagleSoft461 wants to merge 1 commit into
mainfrom
feature/email-verification
Open

feat: Add email verification feature#2
EagleSoft461 wants to merge 1 commit into
mainfrom
feature/email-verification

Conversation

@EagleSoft461
Copy link
Copy Markdown
Owner

Email Verification Feature

New Features

  • Email verification on user registration
  • 24-hour verification token expiry
  • Resend verification email endpoint
  • Gmail SMTP integration

Security

  • Email credentials moved to environment variables
  • Added .env.example for configuration reference
  • Never commit sensitive credentials to git

New Endpoints

  • GET /auth/verify-email - Verify email with token
  • POST /auth/resend-verification - Resend verification email

Technical Details

  • EmailVerificationToken entity with expiry tracking
  • EmailService with HTML email templates
  • emailVerified field added to User entity
  • 13 tests passing

- Add EmailVerificationToken entity with 24-hour expiry
- Add EmailVerificationTokenRepository
- Add EmailService with Gmail SMTP integration
- Add email verification on user registration
- Add GET /auth/verify-email endpoint
- Add POST /auth/resend-verification endpoint
- Add emailVerified field to User entity
- Move email credentials to environment variables
- Add .env.example for configuration reference
- Update README with new endpoints and screenshots
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.

1 participant