Skip to content

Commit f4fdb38

Browse files
committed
Clarify username taken error message during registration
1 parent a52d5ac commit f4fdb38

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

public/language/en-US/error.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,5 +264,7 @@
264264
"activitypub.pubKey-not-found": "Unable to resolve public key, so payload verification cannot take place.",
265265
"activitypub.origin-mismatch": "The received object's origin does not match the sender's origin",
266266
"activitypub.actor-mismatch": "The received activity is being carried out by an actor that is different from expected.",
267-
"activitypub.not-implemented": "The request was denied because it or an aspect of it is not implemented by the recipient server"
267+
"activitypub.not-implemented": "The request was denied because it or an aspect of it is not implemented by the recipient server",
268+
"username-or-group-taken": "Username unavailable (conflicts with an existing user or group).",
269+
268270
}

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-or-group-taken]]');
139139
}
140140

141141
callback();

0 commit comments

Comments
 (0)