Skip to content

Bug: Verification Modal Shows Success Message Even When Email Delivery Fails #189

@riddhisharma7905

Description

@riddhisharma7905

Description

The email verification modal displays conflicting information when the verification email fails to send.

The modal states that a verification code has been sent to the user's email address, while simultaneously showing an error message indicating that the verification email could not be delivered.

This creates confusion about whether the verification code was actually generated and sent.

Steps to Reproduce

  1. Register or trigger the email verification flow.
  2. Reach the verification modal.
  3. Observe the displayed messages when email delivery fails.

Expected Behavior

  • If the verification email is sent successfully, only the success message should be displayed.
  • If the email fails to send, the modal should clearly indicate the failure and should not display a success confirmation.
  • The OTP input should only be enabled when a verification code has been successfully generated and sent.

Actual Behavior

  • The modal displays:

    • "We sent a verification code to ..."
    • "We couldn't send the verification email. Click Resend."
  • Both messages are shown simultaneously, creating contradictory UI states.

Impact

  • Users cannot determine whether a verification code was actually sent.
  • Creates confusion during account verification.
  • May lead to repeated resend attempts and poor user experience.

Possible Fix

  • Synchronize success and error states in the verification flow.
  • Only display the success message after successful email delivery confirmation.
  • Hide or disable OTP verification until the email is successfully sent.
  • Ensure frontend messaging reflects the actual backend response.
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions