refactored from render to renderForm

This commit is contained in:
tracer 2022-11-15 17:08:44 +01:00
parent f1a8821ba7
commit 481849b530

View File

@ -92,8 +92,8 @@ class SecurityController extends AbstractController
return $this->render(view: '@default/security/registration_finished.html.twig');
}
return $this->render(view: '@default/security/register.html.twig', parameters: [
'registrationForm' => $form->createView(),
return $this->renderForm(view: '@default/security/register.html.twig', parameters: [
'registrationForm' => $form,
]);
}
@ -142,8 +142,8 @@ class SecurityController extends AbstractController
);
}
return $this->render(view: '@default/security/forgot_password.html.twig', parameters: [
'requestForm' => $form->createView(),
return $this->renderForm(view: '@default/security/forgot_password.html.twig', parameters: [
'requestForm' => $form,
]);
}
@ -220,8 +220,8 @@ class SecurityController extends AbstractController
return $this->redirectToRoute(route: 'app_main');
}
return $this->render(view: '@default/security/reset_password.html.twig', parameters: [
'resetForm' => $form->createView(),
return $this->renderForm(view: '@default/security/reset_password.html.twig', parameters: [
'resetForm' => $form,
]);
}