Skip to content

Better username-taken error response message (recommended username w/ suffix)#65

Open
pskodr wants to merge 2 commits intoCMU-313:mainfrom
pskodr:main
Open

Better username-taken error response message (recommended username w/ suffix)#65
pskodr wants to merge 2 commits intoCMU-313:mainfrom
pskodr:main

Conversation

@pskodr
Copy link

@pskodr pskodr commented Feb 2, 2026

Currently, when a user tries to register a NodeBB account with an already existing username, the error message simply says "Username taken".

We want to make this more descriptive, by suggesting a potential new username, using the formula "suffix".

Changes made include:

  • editing public/language/en-US/error.json "username-taken" error message by adding following statement ", Maybe try %1" with %1 being a placeholder value.
  • editing public/src/client/register.js line 138 showError function, to substitute the placeholder %1 with "{username}suffix".
image

This pull request fixes #1 : #1

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

1 participant