Skip to content

Added Enhancement: username-taken suggestion feature for registering new user#3

Open
LeyouJcmu wants to merge 1 commit intoCMU-313:mainfrom
LeyouJcmu:main
Open

Added Enhancement: username-taken suggestion feature for registering new user#3
LeyouJcmu wants to merge 1 commit intoCMU-313:mainfrom
LeyouJcmu:main

Conversation

@LeyouJcmu
Copy link
Copy Markdown

@LeyouJcmu LeyouJcmu commented Feb 2, 2026

Currently, when users register with a taken username, it displays "Username taken."

This commit changes the message to include an alternative username (of the form) "${username}suffix", where ${username} is the username they are attempting to use in registration.

The primary changes to the code were to:
public/src/client/register.js - to pass in the attempted username into the username-taken error
public/language/en-US/error.json - to display the new username-taken message

This PR closes #1

Example of fix:
image

@coveralls
Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 21594911267

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 78.841%

Totals Coverage Status
Change from base Build 21503398961: 0.0%
Covered Lines: 25358
Relevant Lines: 30328

💛 - Coveralls

@LeyouJcmu LeyouJcmu changed the title Added username-taken suggestion feature for registering new user Added Enhancement: username-taken suggestion feature for registering new user Feb 2, 2026
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.

Suggest a new username if a username is taken during registration

2 participants