]> Raphaël G. Git Repositories - airbundle/commitdiff
Set mail and password as optional fields
authorRaphaël Gertz <git@rapsys.eu>
Sat, 28 Aug 2021 08:19:32 +0000 (10:19 +0200)
committerRaphaël Gertz <git@rapsys.eu>
Sat, 28 Aug 2021 08:19:32 +0000 (10:19 +0200)
Resources/views/form/recover.html.twig

index 310b4853c5e42f0c75708a6c00d2f14ac7356b4e..ac5eee45b8a126f2bd8d5e6f19cef4b1c958b02d 100644 (file)
@@ -8,7 +8,13 @@
                {% else %}
                        {{ form_start(form) }}
                                <div>
-                                       {{ 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) }}
                                </div>