-
-
Notifications
You must be signed in to change notification settings - Fork 422
Registration form and validation #412
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
this is caused by auto-validation in Symfony 4.3 and the |
It's a registration form, why would the password have to be I think this is totally legit, especially considering how auto-mapping was made in the first place. The password could be updated/hashed with an event listener or something, or the use of a DTO could be encouraged in order to avoid such issue. |
This should be "fixed" now, in a sense. We've disabled (via the recipe) the auto-mapping feature by default in Symfony 4.3: https://github.com/symfony/recipes/pull/612/files - the auto mapping was causing this problem, and it needs a bit more work so we can work around situations like this. |
When using this command : php bin/console make:registration-form
It should be mentionned ( or done automatically ) that you must set the User "password" variable to "nullable=true" else you face a validation issue like so :
The text was updated successfully, but these errors were encountered: