Skip to content

The forgot password (mail is not receiving).ย #285

Description

@AliTasawar123

๐Ÿž Bug: Forgot Password Email Not Being Delivered

๐Ÿ“‹ Description

While trying to create and log in as a merchant, the "Forgot Password" functionality appears broken โ€” it says the email is sent (success response), but no actual email is received.


๐Ÿ” Reproduction Steps

  1. Seeded the database to create an admin user.
  2. Used admin to approve a new merchant.
    • Note: No password was set for the merchant at creation.
  3. Tried to reset the merchant password using the โ€œForgot Passwordโ€ flow.
  4. Received success message: โ€œEmail sentโ€ (see network tab screenshot).
  5. But no email arrived in the mailbox.

๐Ÿง  Observations

  • The resetPWDToken field is getting created in the DB for the merchant user, so backend logic partially works.
  • The environment is set up with valid Mailgun API keys and domain (see .env screenshot).
  • No errors in browser dev tools or backend logs.
  • Network request to forgot password endpoint returns 200 OK.

๐Ÿ“ธ Screenshots

๐Ÿงช Environment (.env file):

ENV Screenshot

โœ… Network Response (Email Sent Message):

Network Screenshot

๐Ÿ“ง๐Ÿ”ซ The Mail Gun

Image

โ“ What Help I Need

  • Can someone confirm if the Mailgun integration is working as expected?
  • Where to check logs or failures in email delivery? (e.g., backend logs or Mailgun dashboard?)
  • What is the recommended way to set an initial password for a merchant, especially if created via admin with no password field?
  • Any known issues with the email template or sending function?

๐Ÿ’ป Environment

  • OS: Windows 11
  • Browser: Edge
  • Backend Service: Node.js (with Mailgun integration)
  • Mail Provider: Mailgun

โœ… Additional Suggestions (Optional)

  • Add an option to manually set a password during merchant approval by admin.
  • Improve error handling or email delivery confirmation in backend logs.

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