diff --git a/src/js/yunohost/controllers/users.js b/src/js/yunohost/controllers/users.js index 03c9425d..21008bbf 100644 --- a/src/js/yunohost/controllers/users.js +++ b/src/js/yunohost/controllers/users.js @@ -207,7 +207,7 @@ } c.params['domain'] = c.params['domain'].slice(1); - + c.params['username']=c.params['username'].trim(); c.api('POST', '/users', c.params.toHash(), function(data) { c.redirect_to('#/users'); });