Skip to content

feat: add password strength indicator to registration form - scores p…#279

Merged
chthonn merged 1 commit into
chthonn:mainfrom
Akanksha-Shahi:feat/issue-254-password-strength-meter
Jun 22, 2026
Merged

feat: add password strength indicator to registration form - scores p…#279
chthonn merged 1 commit into
chthonn:mainfrom
Akanksha-Shahi:feat/issue-254-password-strength-meter

Conversation

@Akanksha-Shahi

Copy link
Copy Markdown

…assword based on length and character variety (upper, lower, numbers, special chars), shows live Weak/Medium/Strong meter with color-coded segments below the password field. Closes #254

What does this PR do?

Adds a live password strength indicator to the registration form, addressing the lack of feedback users had beyond the minimum-length check. As the user types their password, a 4-segment meter fills in and color-codes (red/yellow/green) based on a scoring system that checks: length (7+ and 12+ characters), lowercase letters, uppercase letters, numbers, and special characters. A text label ("Weak password" / "Medium password" / "Strong password") updates live alongside the meter.

Implementation:

  • New utils/passwordStrength.js — pure scoring function, returns score/label/color, fully unit-testable and decoupled from UI
  • New components/register/PasswordStrengthMeter.jsx — renders the segmented meter and label, hidden when the field is empty
  • Wired into Register.jsx below the existing password input, matching the existing dark/purple inline-style design system

No backend changes were needed — this is a frontend-only UX enhancement.

Type of change

  • Bug fix
  • New feature
  • Documentation
  • Refactor
  • Other

Testing done

  • Verified meter updates live on every keystroke
  • Verified meter is hidden when the password field is empty
  • Verified existing registration flow (validation, OTP modal, submit) is unaffected
  • Ran npm run lint and npm run build in frontend — both passed

Closes #254

…assword based on length and character variety (upper, lower, numbers, special chars), shows live Weak/Medium/Strong meter with color-coded segments below the password field. Closes chthonn#254
@vercel

vercel Bot commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Someone is attempting to deploy a commit to the Sunil Kumar's projects Team on Vercel.

A member of the Team first needs to authorize it.

@chthonn chthonn added good first issue Good for newcomers level:beginner Difficulty: beginner gssoc:approved GirlScript Summer of Code contribution quality:clean Quality multiplier: clean labels Jun 22, 2026
@chthonn chthonn merged commit 08d86ae into chthonn:main Jun 22, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

good first issue Good for newcomers gssoc:approved GirlScript Summer of Code contribution level:beginner Difficulty: beginner quality:clean Quality multiplier: clean

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Add Password Strength Indicator During Registration

2 participants