Skip to content

Commit 3ef7b6a

Browse files
committed
Fix: Suggest a new username
If the user picks a take username then nodebb will suggest that username + "suffix"
1 parent a52d5ac commit 3ef7b6a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

public/language/en-US/error.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"invalid-path": "Invalid path",
3333
"folder-exists": "Folder exists",
3434
"invalid-pagination-value": "Invalid pagination value, must be at least %1 and at most %2",
35-
"username-taken": "Username taken",
35+
"username-taken": "Username taken. Maybe try %1",
3636
"email-taken": "Email address is already taken.",
3737
"email-nochange": "The email entered is the same as the email already on file.",
3838
"email-invited": "Email was already invited",

public/src/client/register.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ define('forum/register', [
135135
if (results.every(obj => obj.status === 'rejected')) {
136136
showSuccess(usernameInput, username_notify, successIcon);
137137
} else {
138-
showError(usernameInput, username_notify, '[[error:username-taken]]');
138+
showError(usernameInput, username_notify, `[[error:username-taken, "${username}suffix"]]`);
139139
}
140140

141141
callback();

0 commit comments

Comments
 (0)