Skip to content

Fix password minimum length mismatch between frontend and backend - #93

Merged
A1L13N merged 1 commit into
alphaonelabs:mainfrom
gopikrishna-20:fix/password-length-mismatch
Oct 13, 2026
Merged

A1L13N merged 1 commit into
alphaonelabs:mainfrom
gopikrishna-20:fix/password-length-mismatch

Conversation

@gopikrishna-20

Copy link
Copy Markdown
Contributor

Closes #92

Problem

The register form in public/login.html allowed passwords of 6-7 characters, but the backend (api_register) requires at least 8. Short passwords were only rejected after the form was submitted.

Changes

In public/login.html:

  • Changed minlength from 6 to 8 on the password and confirm password fields
  • Changed the JS check from password.length < 6 to password.length < 8
  • Updated the error message and placeholder to say 8 characters

Testing

  • 7-character password: rejected on the form with "Password must be at least 8 characters", with no request sent
  • 8-character password: registration goes through
  • Login is unchanged, so existing users with older passwords can still sign in

Images

Screenshot 2026-10-13 115303

Copilot AI balanced review requested due to automatic review settings October 13, 2026 06:26

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@coderabbitai

coderabbitai Bot commented Oct 13, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: Repository: alphaonelabs/coderabbit/.coderabbit.yaml
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: e48d94e0-5d48-4a08-b7c5-0ff4781c3dea
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@A1L13N
A1L13N merged commit 27d91a4 into alphaonelabs:main Oct 13, 2026
1 check passed
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.

Password length mismatch between register form and backend

3 participants