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
- Sign up for a new teacher account
- Reach the "Email Verification" step on the profile/settings page
- Enter an email address and trigger the OTP send
- 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.
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 inAuthContext.jsxonly generates the OTP and stores it inlocalStorage— it never triggers any email delivery service.Steps to Reproduce
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 insrc/context/AuthContext.jsxto actually deliver the OTP to the user's email.