From b99f2af57efb16c003da2b62096d6e17cf3e08d1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Sat, 28 Aug 2021 10:19:32 +0200 Subject: [PATCH] Set mail and password as optional fields --- Resources/views/form/recover.html.twig | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Resources/views/form/recover.html.twig b/Resources/views/form/recover.html.twig index 310b485..ac5eee4 100644 --- a/Resources/views/form/recover.html.twig +++ b/Resources/views/form/recover.html.twig @@ -8,7 +8,13 @@ {% else %} {{ form_start(form) }}
- {{ form_row(form.mail) }} + {% if form.mail is defined %} + {{ form_row(form.mail) }} + {% endif %} + + {% if form.password is defined %} + {{ form_row(form.password) }} + {% endif %} {{ form_row(form.submit) }}
-- 2.41.1