From ec3ae307e976b395876a6df4ef0cf03fd3903023 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Tue, 10 Nov 2015 13:13:16 -0500 Subject: [PATCH] closes #3853 --- src/user/create.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {