Skip to content

Fix: Added alternative username to use when username is taken#2

Open
Nikash-B wants to merge 1 commit intoCMU-313:mainfrom
Nikash-B:adding-suffix-to-username
Open

Fix: Added alternative username to use when username is taken#2
Nikash-B wants to merge 1 commit intoCMU-313:mainfrom
Nikash-B:adding-suffix-to-username

Conversation

@Nikash-B
Copy link
Copy Markdown

@Nikash-B Nikash-B commented Feb 2, 2026

Currently, users don't see any other usernames to try when the username they tried is taken.

We enabled NodeBB to display an alternative username when the username input during account creation was taken. This enables users to try different usernames.

The primary code changes were modifying the username-taken string to also taken in another string, here the username input, in public/language/en-US/error.json and public/src/client/register.js to insert the username along with the suffix as a potential alternative username that the user could try while creating their account.

This PR closes #1.

We can see using the screenshot below that fix is working.

NodeBB-Recitation-3

@coveralls
Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 21594715295

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

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