amber
amber copied to clipboard
Handle empty (auth) params
Description
Using the default generated Auth-Registration Controller, you get a 500 error if both fields are left blank. I thought this was fixed in #1085, but still happens for me.
Steps to Reproduce
- generate new amber app
- amber g auth User
- go to sign up page and leave the fields completely empty
Expected behavior: Error should be added to user.errors and shown to the user
Actual behavior: 500 error is thrown
Reproduces how often: 100%
Versions
Crytal 1.0.0 Amber 0.36.0
Update: Okay I found out that if you manually add true as 3rd parameter in validation it works. It should be written in the docs though :).