Skip to content

[Bug] Email verification OTP is not sent to user's email #80

@Vyakhya-Sharma

Description

@Vyakhya-Sharma

Description

The email verification flow shows a message indicating that a 6-digit OTP has been sent to the user's email, but no email is actually sent. The sendOTP() function in AuthContext.jsx only generates the OTP and stores it in localStorage — it never triggers any email delivery service.

Steps to Reproduce

  1. Sign up for a new teacher account
  2. Reach the "Email Verification" step on the profile/settings page
  3. Enter an email address and trigger the OTP send
  4. Check the email inbox for the verification code

Expected Behavior

A 6-digit OTP should be sent to the entered email address so the user can complete email verification.

Actual Behavior

No email is sent. The OTP is silently stored in localStorage (key: lecturePulse_otp_<email>) and is only visible via browser dev tools, making the email verification feature non-functional for real users.

Suggested Fix

Integrate a lightweight email-sending service (e.g., EmailJS, since the project is frontend-only) into the sendOTP() function in src/context/AuthContext.jsx to actually deliver the OTP to the user's email.

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions