v1.18.x
barisusakli 9 years ago
parent fb7f10d63d
commit c3369964eb

@ -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);

Loading…
Cancel
Save