Skip to content

Commit e21fd0b

Browse files
committed
FIX: Remove captcha field value from sent mail
1 parent 9addd88 commit e21fd0b

File tree

1 file changed

+6
-4
lines changed
  • djangocms_form_builder/templates/djangocms_form_builder/mails/default

1 file changed

+6
-4
lines changed

djangocms_form_builder/templates/djangocms_form_builder/mails/default/mail_html.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@ <h1>{% translate "Form submission" %}</h1>
1010
</thead>
1111
<tbody>
1212
{% for field, value in cleaned_data.items %}
13-
<tr>
14-
<td>{{ field }}</td>
15-
<td>{{ value }}</td>
16-
</tr>
13+
{% if field != 'captcha_field' %}
14+
<tr>
15+
<td>{{ field }}</td>
16+
<td>{{ value }}</td>
17+
</tr>
18+
{% endif %}
1719
{% endfor %}
1820
<tr>
1921
<td>{% translate "time" %}</td>

0 commit comments

Comments
 (0)