diff --git a/src/Resources/skeleton/registration/RegistrationController.tpl.php b/src/Resources/skeleton/registration/RegistrationController.tpl.php index 3d45a8cb6..d4a013515 100644 --- a/src/Resources/skeleton/registration/RegistrationController.tpl.php +++ b/src/Resources/skeleton/registration/RegistrationController.tpl.php @@ -58,7 +58,7 @@ public function register(Request $request, g } return $this->render('registration/register.html.twig', [ - 'registrationForm' => $form->createView(), + 'registrationForm' => $form, ]); } diff --git a/src/Resources/skeleton/resetPassword/ResetPasswordController.tpl.php b/src/Resources/skeleton/resetPassword/ResetPasswordController.tpl.php index 1eefcdb12..c4127e554 100644 --- a/src/Resources/skeleton/resetPassword/ResetPasswordController.tpl.php +++ b/src/Resources/skeleton/resetPassword/ResetPasswordController.tpl.php @@ -33,7 +33,7 @@ public function request(Request $request, MailerInterface $mailerrender('reset_password/request.html.twig', [ - 'requestForm' => $form->createView(), + 'requestForm' => $form, ]); } @@ -109,7 +109,7 @@ public function reset(Request $request, UserPasswordHasherInterface $passwordHas } return $this->render('reset_password/reset.html.twig', [ - 'resetForm' => $form->createView(), + 'resetForm' => $form, ]); } diff --git a/tests/fixtures/make-registration-form/tests/it_generates_registration_with_entity_and_authenticator.php b/tests/fixtures/make-registration-form/tests/it_generates_registration_with_entity_and_authenticator.php index f87e1aaf5..1e23dd893 100644 --- a/tests/fixtures/make-registration-form/tests/it_generates_registration_with_entity_and_authenticator.php +++ b/tests/fixtures/make-registration-form/tests/it_generates_registration_with_entity_and_authenticator.php @@ -54,7 +54,7 @@ public function testRegistrationValidationError() $form['registration_form[plainPassword]'] = 'foo'; $client->submit($form); - $this->assertSame(200, $client->getResponse()->getStatusCode()); + $this->assertSame(422, $client->getResponse()->getStatusCode()); $this->assertStringContainsString( 'There is already an account with this email', $client->getResponse()->getContent()