Skip to content

[Bug]: Signup form throws false validation error 'Password must be at least 7 characters long' #246

@Vaanshimadaan

Description

@Vaanshimadaan

Bug Description:
There is a bug in the user signup validation logic. Even when the user enters a password that meets the criteria (e.g., more than 7 characters) and both the password fields match, the form displays a false validation error banner: "Password must be at least 7 characters long." and prevents submission.

Steps to Reproduce:

  1. Go to the PiperChat registration page.
  2. Fill in a valid email and username.
  3. Enter a password that is clearly longer than 7 characters (e.g., 14 characters long).
  4. Re-enter the same password in the confirmation field.
  5. Notice that the error banner appears and blocks the registration process.

Screenshots / Visual Proof:

Image

Expected Behaviour:
The form should validate the length correctly. If the input string length is >= 7, the error banner should disappear, and the user should be allowed to proceed by clicking "Continue".

Possible Root Cause:

  • The validation trigger might be lagging behind the state updates (onChange).
  • The character length condition check logic in the backend/frontend controller might be incorrectly configured or looking at a wrong input field value.

I am a contributor participating in GSSoC '26. I would love to look into the authentication component files and resolve this validation logic error. Please assign this issue to me!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions