diff --git a/src/js/yunohost/controllers/users.js b/src/js/yunohost/controllers/users.js index 03c9425d..58ecad4a 100644 --- a/src/js/yunohost/controllers/users.js +++ b/src/js/yunohost/controllers/users.js @@ -207,7 +207,8 @@ } 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'); });