Skip to content

Commit

Permalink
Merge pull request #516 from pdekraker-epa/master
Browse files Browse the repository at this point in the history
Add CSRF Protection Support
  • Loading branch information
amercader authored Dec 7, 2022
2 parents 49f1093 + 84e1152 commit 2e5ac42
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ckanext/harvest/templates/source/new_source_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
</span>
{% endcall %}

{{ h.csrf_input() if 'csrf_input' in h }}

{{ form.input('title', id='field-title', label=_('Title'), placeholder=_('eg. A descriptive title'), value=data.title, error=errors.title, classes=['control-full'], attrs={'data-module': 'slug-preview-target'}) }}

{% set prefix = 'harvest' %}
Expand Down

0 comments on commit 2e5ac42

Please sign in to comment.