Skip to content

feat: strengthen password validation during signup [NSoC]#106

Merged
Shriii19 merged 1 commit into
Shriii19:masterfrom
ash1shkumar:fix/strong-password-validation
May 24, 2026
Merged

feat: strengthen password validation during signup [NSoC]#106
Shriii19 merged 1 commit into
Shriii19:masterfrom
ash1shkumar:fix/strong-password-validation

Conversation

@ash1shkumar
Copy link
Copy Markdown
Contributor

Summary

This PR strengthens password validation during user signup by enforcing modern password security requirements. It replaces the previous weak minimum-length-only validation with stronger regex-based password checks.

Fixes #102


Changes Made

  • Added strong password regex validation
  • Increased minimum password length requirement
  • Enforced uppercase letter requirement
  • Enforced lowercase letter requirement
  • Enforced numeric digit requirement
  • Enforced special character requirement
  • Improved overall signup security validation

Security Improvements

Previously, passwords were only validated using:

password.length < 6

This allowed weak passwords such as:

  • password
  • abc123
  • qwerty

The new validation now requires:

  • Minimum 8 characters
  • Uppercase letter
  • Lowercase letter
  • Number
  • Special character

Example valid passwords:

  • Strong@123
  • FlowForge#2026

Files Modified

  • frontend/app/api/auth/signup/route.ts

Type of Change

  • Security Enhancement
  • Validation Improvement
  • Authentication Hardening

Benefits

  • Improved account security
  • Reduced risk of weak-password attacks
  • Better compliance with modern authentication standards
  • Stronger protection against credential stuffing and brute-force attempts

Program

Contributing under:

  • GSSoC 2026
  • NSoC 2026

@vercel
Copy link
Copy Markdown

vercel Bot commented May 24, 2026

@ash1shkumar is attempting to deploy a commit to the shreemp194-gmailcom's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link
Copy Markdown

👋 Thank you for opening this pull request! I will review your changes and assist you soon.

@ash1shkumar
Copy link
Copy Markdown
Contributor Author

Hi @Shriii19 👋 This PR is ready for review. Kindly review it and add appropriate gssoc, nsoc, and respective level/difficulty labels as I am contributing under GSSoC and NSoC . Thank you!

@vercel
Copy link
Copy Markdown

vercel Bot commented May 24, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
flow-forge Ready Ready Preview, Comment May 24, 2026 2:40pm

@Shriii19 Shriii19 merged commit 597299e into Shriii19:master May 24, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[NSoC] Enhance Password Validation & Strength Requirements During Signup

2 participants