Merge pull request #320 from anmol26s/dev

Trim username while new user creation to eliminate unecessary error
This commit is contained in:
Alexandre Aubin 2020-11-04 15:47:52 +01:00 committed by GitHub
commit f78e91bad5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -207,6 +207,7 @@
} }
c.params['domain'] = c.params['domain'].slice(1); 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.api('POST', '/users', c.params.toHash(), function(data) {
c.redirect_to('#/users'); c.redirect_to('#/users');