Trim username while new user creation to eliminate unecessary error

This commit is contained in:
anmol 2020-11-04 19:53:06 +05:30
parent f0b1a0bbce
commit b385ac7ed3

View file

@ -207,7 +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');
}); });