sfbrigade / sf-lifeline

GNU Affero General Public License v3.0
7 stars 4 forks source link

Registration form showing error message on blank middle name #85

Closed francisli closed 4 months ago

francisli commented 4 months ago

The middle name is optional, but passing in an empty string fails the schema validation check (i.e. it's less than 2 characters long).

My guess: in the API route, if the middle name is an empty string, it needs to be replaced with null to pass validation.

Screenshot 2024-07-24 at 11 31 04 AM