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