fief-dev / fief

Users and authentication management SaaS
https://www.fief.dev
Other
577 stars 48 forks source link

Internal Server Error in sign up with custom user fields #31

Closed paolodina closed 2 years ago

paolodina commented 2 years ago

Describe the bug

Internal Server Error is returned submitting the registration form as described below.

To Reproduce

  1. create custom user fields like this image
  2. create index.html and callback.html as described here https://docs.fief.dev/integrate/javascript/browser/
  3. start a the web server and go to http://localhost:8000/ supposing index.html is served there
  4. click on Sign up
  5. fill email address and password
  6. don't check the "terms" checkbox
  7. submit the form

Expected behavior

  1. frontend: data validation, prevent the submit
  2. backend: don't crash, return HTTP 400/422

Configuration

frankie567 commented 2 years ago

Thank you for the detailed report @paolodina, I'll investigate right away!

frankie567 commented 2 years ago

Fixed! I'll make a release today to push it live!

@all-contributors add @paolodina for bug

allcontributors[bot] commented 2 years ago

@frankie567

I've put up a pull request to add @paolodina! :tada:

frankie567 commented 2 years ago

Fix deployed in Fief Cloud 👍