8000 Remove isSubmitted call · symfony/symfony-docs@cebd5fd · GitHub
[go: up one dir, main page]

Skip to content

Commit cebd5fd

Browse files
DanielSiepmannwouterj
authored andcommitted
Remove isSubmitted call
1 parent b9c298e commit cebd5fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cookbook/doctrine/registration_form.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ controller for displaying the registration form::
222222

223223
// 2) handle the submit (will only happen on POST)
224224
$form->handleRequest($request);
225-
if ($form->isValid() && $form->isSubmitted()) {
225+
if ($form->isSubmitted() && $form->isValid()) {
226226
// 3) Encode the password (you could also do this via Doctrine listener)
227227
$encoder = $this->get('security.encoder_factory')
228228
->getEncoder($user);

0 commit comments

Comments
 (0)
0