Skip to content

Username regex mismatch between signup and change processes #5034

@chloe-arkwright

Description

@chloe-arkwright

Please confirm the following.

What browsers are you seeing the problem on?

Firefox

Describe the bug

The regex validation for the user's username appears to be different between the signup page and the profile page where you can change your username.

For example, this user exists with a period (.) in their username but if you try to change your username to contain a period then it will fail the regex validation.

https://modrinth.com/user/satan.son_

I can confirm that my account also had a period in the username before I wanted to change it slightly.

Steps to reproduce

  1. Go to profile page
  2. Try to update username to one containing a period
  3. See it fails validation
  4. Go to sign up page
  5. Try to create an account with the same username
  6. See it passes validation.

Expected behavior

Regexs match either by disallowing periods or allowing usernames to be changed to allow periods.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    websiteRelates to Modrinth.com web frontend📂 Under review[Triage] Is being reviewed by Modrinth Staff for future roadmap consideration.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions