diff --git a/src/user/create.js b/src/user/create.js index d0a6afb46d..00e5fc69cc 100644 --- a/src/user/create.js +++ b/src/user/create.js @@ -157,7 +157,7 @@ module.exports = function (User) { } if (!utils.isUserNameValid(userData.username) || !utils.isSlugValid(userData.userslug)) { - throw new Error(`[[error:invalid-username, ${userData.username}]]`); + throw new Error(`[[error:invalid-username]]`); } if (userData.password) {