8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9c298e commit cebd5fdCopy full SHA for cebd5fd
cookbook/doctrine/registration_form.rst
@@ -222,7 +222,7 @@ controller for displaying the registration form::
222
223
// 2) handle the submit (will only happen on POST)
224
$form->handleRequest($request);
225
- if ($form->isValid() && $form->isSubmitted()) {
+ if ($form->isSubmitted() && $form->isValid()) {
226
// 3) Encode the password (you could also do this via Doctrine listener)
227
$encoder = $this->get('security.encoder_factory')
228
->getEncoder($user);