Skip to content

Connect Frontend Password Reset Pages to Backend APIs & Display Messages #5

@RonaldRonnie

Description

@RonaldRonnie

Background

The UI pages for password reset exist; now we must integrate them fully with backend endpoints and handle user notifications.

Tasks

  • Ensure axios base URL is configured (e.g., http://localhost:8080 or environment variable)
  • Create src/api/auth.js with functions: requestReset(email), validateToken(token), confirmReset(token, newPassword)
  • Use react-toastify or similar for displaying success/error messages on each page
  • Add environment variables (e.g., .env.local) for API URL
  • Update README with instructions for environment variables & running the frontend

Acceptance Criteria

  • API module exists and is imported in pages
  • Error/success alerts appear as toast notifications
  • Environment config works for local and production builds

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions