The first name, last name and username inputs are stripped of all whitespace characters using trim(), so now accounts with empty usernames can no longer be made.
Hi, thank you for finding this and making the pull request! If you don't mind, could you also include a server check for this? That would be in controllers/createUser.js
Fixes #7
The first name, last name and username inputs are stripped of all whitespace characters using
trim()
, so now accounts with empty usernames can no longer be made.