From c3369964ebe5e93d57257424afbb951c59a102ab Mon Sep 17 00:00:00 2001 From: barisusakli Date: Tue, 3 Nov 2015 12:36:32 -0500 Subject: [PATCH] closes #3820 --- src/user/profile.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/user/profile.js b/src/user/profile.js index a516b30074..e588d147d0 100644 --- a/src/user/profile.js +++ b/src/user/profile.js @@ -70,6 +70,7 @@ module.exports = function(User) { if (!data.username) { return next(); } + data.username = data.username.trim(); User.getUserFields(uid, ['username', 'userslug'], function(err, userData) { if (err) { return next(err);