From: Raphaƫl Gertz Date: Sat, 28 Aug 2021 08:19:32 +0000 (+0200) Subject: Set mail and password as optional fields X-Git-Tag: 0.2.0~26 X-Git-Url: https://git.rapsys.eu/airbundle/commitdiff_plain/b99f2af57efb16c003da2b62096d6e17cf3e08d1 Set mail and password as optional fields --- 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) }}