Skip to content

BUG: Email signup button does not trigger /signup API (OTP never sent) #283

@SoorejS

Description

@SoorejS

Description

The email/password signup flow on the frontend does not trigger a request to the backend /signup endpoint. Because of this, users cannot complete email-based registration and OTP verification never occurs.

Clicking "Sign Up With Email" immediately shows "Signup failed", but no network request is made to the backend.


Steps to Reproduce

  1. Run the backend locally
  2. Run the frontend in local development mode
  3. Open the "Create an account" page
  4. Enter a valid email and password
  5. Click Sign Up With Email
  6. Open browser DevTools → Network tab

Expected Behavior

A POST request should be sent to:

POST /signup

With payload:

{
  "email": "<user email>",
  "password": "<user password>"
}

Backend should return a success response and send an OTP email.

Actual Behavior

  • No POST /signup request is triggered
  • Network tab shows no backend API call
  • Frontend displays "Signup failed"
  • OTP email is never sent

Evidence

  • Backend /signup works correctly when tested via curl/Postman
  • MongoDB confirms users are only created via other flows
  • Browser Network tab shows no API call on email signup button click

Possible Cause

The email signup button may not be wired to a submit handler or the handler does not call the backend /signup API.

Environment

  • OS: Windows
  • Browser: Chrome
  • Backend: Go (Gin), running locally
  • Frontend: React (local dev)

I’m happy to take this up , submit a fix and push a pr if allowed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions