From 05c19e6d4fcb4b8bdd63a7e4cb9e3843c607e75a Mon Sep 17 00:00:00 2001 From: Thomas Rubini <74205383+ThomasRubini@users.noreply.github.com> Date: Wed, 21 Feb 2024 18:38:08 +0100 Subject: [PATCH] fix register page not updating html on error see https://symfonycasts.com/screencast/turbo/forms --- src/Controller/RegistrationController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Controller/RegistrationController.php b/src/Controller/RegistrationController.php index 84c4b0d..0314137 100644 --- a/src/Controller/RegistrationController.php +++ b/src/Controller/RegistrationController.php @@ -44,6 +44,6 @@ class RegistrationController extends AbstractController return $this->render('registration/register.html.twig', [ 'registrationForm' => $form->createView(), - ]); + ], new Response(null, 422)); } }