Nostradongus / AGC-Print

2 stars 1 forks source link

Contact number and email is not reflected for users with a space at the end of their username #35

Closed jason-9601 closed 3 years ago

jason-9601 commented 3 years ago

Summary: Account information is incomplete for users with a space at the end of their username.

For example a user named "mcdo "

The error occurs since it is trying to GET /users/"mcdo". But the actual username has a space "mcdo ".

Steps to recreate:

  1. Make a user with a space at the end of their username (edit atlas or register a new user)
  2. Go to http://localhost:3000/view-user-list
  3. View user information of this user
  4. Check commandline for 404 GET /users error

On branch: sprint3-test

Thank you

jason-9601 commented 3 years ago

Changed to invalid since register page already disallows spaces