Skip to content

feat: add password strength validation to signup form #25

Open
pericharlabindhumadhavi-data wants to merge 1 commit into
Pushkarini579:mainfrom
pericharlabindhumadhavi-data:fix/issue-20-password-validation
Open

feat: add password strength validation to signup form #25
pericharlabindhumadhavi-data wants to merge 1 commit into
Pushkarini579:mainfrom
pericharlabindhumadhavi-data:fix/issue-20-password-validation

Conversation

@pericharlabindhumadhavi-data

Copy link
Copy Markdown

Closes #20

Problem

The signup form only had required on the password field with no minimum length or complexity rules. A user could sign up with a single character password — a real security concern for a clinical portal handling patient data.

Fix

Added client-side password validation that enforces:

  • Minimum 8 characters
  • At least one number
  • Clear inline error message shown under the password field when rules are violated
  • Password field border turns red on invalid input

Files Changed

  • src/app/auth/signup/page.tsx

Testing

  • Typing a password under 8 chars → shows "Password must be at least 8 characters."
  • Typing 8+ chars with no number → shows "Password must contain at least one number."
  • Valid password → no error, form submits normally

Screenshots

Screenshot 2026-06-02 004505 Screenshot 2026-06-02 004520

@vercel

vercel Bot commented Jun 1, 2026

Copy link
Copy Markdown

@pericharlabindhumadhavi-data is attempting to deploy a commit to the Pushkarini 's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enhancement: Add minimum password strength validation to Signup form

1 participant