sysgears/apollo-universal-starter-kit

Add New User Not Working

Open

#692 opened on Apr 5, 2018

View on GitHub
 (6 comments) (0 reactions) (0 assignees)JavaScript (1,668 stars) (335 forks)batch import
buggood first issuehas pr

Description

When I click on Add the URL is set to: http://localhost:3000/users/0 Why is the id set to 0?

I had a look at the code, it looks like the system is not taking care of the Trimming before saving the username, email address,and the user's First and Last Name.

For instance, add 4 blank spaces in the Username field and it happily accepts the input without taking caring of the white spaces.

Trim all these fields before a record is saved to the database.

When I try to set the Active checkbox, it does nothing.

When I try to save the User, a click on the Save button does nothing.

As a side note: Trimming should also be taken care of when a new post is created.

Thanks

Contributor guide