ThatConference / that-website

THAT Conference
https://www.thatconference.com
MIT License
32 stars 22 forks source link

Profile form allows trailing spaces to be saved (IMPORTANT!) #578

Open brettski opened 4 years ago

brettski commented 4 years ago

Describe the bug Looking up a member who used thatconference.com to create and update their profile I was unable to find them. It turns out that they had a trailing space in their firstName and lastName fields (maybe others, I didn't check them all).

Because of this I couldn't find the member as it needs to be an exact match.

Data needs to be trimmed before being written to the database

To Reproduce Steps to reproduce the behavior:

  1. go to https://www.thatconference.com and login
  2. Go to edit your profile /member/edit
  3. add a space to the front and/or back of your name
  4. save the record
  5. go back to edit (/member/edit) you will notice that the space remains

Expected behavior data is trimmed before writing to database

saragibby commented 4 years ago

Marking this as internal staff as without the ability for external contributors to authenticate in local development environment we are unable to access the edit profile page and replicate the issue to fix.