Skip to content

🐛 Bug Report: Username validation allows only letters and rejects valid usernames #587

@harendra-godara

Description

@harendra-godara

📜 Description

Description

The username validation currently allows only alphabetic characters, which rejects many valid GitHub-style usernames containing numbers or hyphens.

For example:

  • harendra07
  • john-doe
  • dev123

are rejected even though they are valid and commonly used usernames.

Steps to Reproduce

  1. Open the Signup/Login page

  2. Enter a username containing:

    • numbers (user123)
    • hyphens (john-doe)
  3. Submit the form

Expected Behavior

The username field should accept valid GitHub-style usernames containing:

  • letters
  • numbers
  • hyphens (-)

Actual Behavior

The validation only allows letters and rejects otherwise valid usernames.

Impact

This creates a poor user experience because many real-world usernames are incorrectly treated as invalid.

Suggested Fix

Update the username validation regex to support commonly accepted username patterns similar to GitHub usernames.

What browsers are you seeing the problem on?

No response

📃 Relevant Screenshots (Links)

Image

Metadata

Metadata

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions