Skip to content

feat(auth): enforce strict password complexity on client and server#2344

Open
Prateek2007-cmd wants to merge 2 commits into
janavipandole:mainfrom
Prateek2007-cmd:fix/issue-2274-password-complexity
Open

feat(auth): enforce strict password complexity on client and server#2344
Prateek2007-cmd wants to merge 2 commits into
janavipandole:mainfrom
Prateek2007-cmd:fix/issue-2274-password-complexity

Conversation

@Prateek2007-cmd

Copy link
Copy Markdown
Contributor

Description

Resolves #2338 (Missing Password Complexity Validation).

The registration logic was severely lacking password complexity requirements, allowing weak passwords that are vulnerable to basic brute-force and dictionary attacks. This PR enforces modern security standards (uppercase, lowercase, digit, special character, 8+ length) across the stack.

Changes Made

  • Server-Side Security: Upgraded Pydantic validators in schemas.py to enforce strict character composition requirements before hashing and storing the password.
  • Client-Side UX: Added identical Regex validation to register.js to provide immediate feedback to the user on the registration form, fulfilling an outstanding TODO item.

Type of Change

  • Security Fix
  • Feature Implementation

@vercel

vercel Bot commented Jun 18, 2026

Copy link
Copy Markdown

@Prateek2007-cmd is attempting to deploy a commit to the janavipandole'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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing Backend Password Complexity Validation (Security)

1 participant