When implementing the following user story with the most recent version of FOSUserBundle (dev-master), instead of the form being invalidated because the passwords don't match, the data attempted to get persisted and fails because the passwords transformed to null
values.
Why does this occur?
Feature Scenario:
Scenario: Trying to register with non verified password
Given I am on the "Login" page
And I follow "Sign Up"
When I fill in the following:
| Email | [email protected] |
| Username | jdoe |
| Password | bar |
| Verification | foo |
And I press "Register"
Then I should be on the Registration page
And I should see "The entered passwords don't match"
Error:
An exception occurred while executing 'INSERT INTO user_account (username, username_canonical, email, email_canonical, enabled, salt, password, last_login, locked, expired, expires_at, confirmation_token, password_requested_at, roles, credentials_expired, credentials_expire_at) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' with params ["jdoe", "jdoe", "[email protected]", "[email protected]", 1, "9z59n57td20cs88kw8gg8css80g0css", null, null, 0, 0, null, null, null, "a:0:{}", 0, null]:
SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'password' cannot be null