Skip to content

[Feature] Add confirm password field to the registration flow #210

Description

@prajapati-pankaj-31

Summary

The current registration form only includes a single password field. Adding a Confirm Password input will improve user experience and prevent accidental password mismatches during account creation.

Screenshot

Current registration page (only a single password field is available):

Registration Page

Proposed Changes

Frontend

  • Add a Confirm Password input below the existing password field.
  • Add a show/hide toggle similar to the main password field.
  • Display real-time feedback:
    • ✅ Passwords match
    • ❌ Passwords do not match
  • Prevent form submission if the passwords differ.
  • Disable the Create Account button while validation fails.

Backend

  • Accept confirmPassword in the registration request.
  • Validate that password === confirmPassword.
  • Return a clear error message when validation fails.

Benefits

  • Improves user experience by reducing registration mistakes.
  • Adds an additional layer of validation beyond the client side.
  • Aligns with common authentication practices used in modern applications.

Acceptance Criteria

  • Add confirmPassword state in Register.tsx.
  • Add a Confirm Password input field with a visibility toggle.
  • Show real-time password match status.
  • Prevent form submission when passwords do not match.
  • Add backend validation for password confirmation.
  • Display user-friendly error messages.
  • Update tests and documentation if applicable.

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions