Skip to content

Commit

Permalink
fixed-username-taken-issue
Browse files Browse the repository at this point in the history
  • Loading branch information
hkkubais committed Sep 12, 2024
1 parent 78c9ee7 commit d00895d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion public/language/en-US/error.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"invalid-path": "Invalid path",
"folder-exists": "Folder exists",
"invalid-pagination-value": "Invalid pagination value, must be at least %1 and at most %2",
"username-taken": "Username taken",
"username-taken": "Username taken. Maybe try %1",
"email-taken": "Email address is already taken.",
"email-nochange": "The email entered is the same as the email already on file.",
"email-invited": "Email was already invited",
Expand Down
2 changes: 1 addition & 1 deletion public/src/client/register.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ define('forum/register', [
} else if (username.length > ajaxify.data.maximumUsernameLength) {
showError(usernameInput, username_notify, '[[error:username-too-long]]');
} else if (!utils.isUserNameValid(username) || !userslug) {
showError(usernameInput, username_notify, '[[error:invalid-username]]');
showError(usernameInput, username_notify, 'Username taken. Maybe try &(currentUsername)suffix');
} else {
Promise.allSettled([
api.head(`/users/bySlug/${userslug}`, {}),
Expand Down

0 comments on commit d00895d

Please sign in to comment.