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.
2 parents b9c298e + cebd5fd commit e6caa72Copy full SHA for e6caa72
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);
0 commit comments