diff --git a/src/user/create.js b/src/user/create.js index 9beca877f4..45fd9cbe62 100644 --- a/src/user/create.js +++ b/src/user/create.js @@ -151,7 +151,7 @@ module.exports = function(User) { } }, userNameValid: function(next) { - next((!utils.isUserNameValid(userData.username) || !userData.userslug) ? new Error('[[error:invalid-username]]') : null); + next((!utils.isUserNameValid(userData.username) || !userData.userslug) ? new Error('[[error:invalid-username, ' + userData.username + ']]') : null); }, passwordValid: function(next) { if (userData.password) {