Add nonce validation

This commit is contained in:
Flavio Copes 2015-11-10 16:25:18 +01:00
parent 27158eaea0
commit ab3d25cc22
2 changed files with 8 additions and 0 deletions

View file

@ -21,6 +21,8 @@
<button class="button" type="{{ button.type|default('submit') }}">{{ button.value|default('Submit') }}</button>
{% endfor %}
</div>
{{ nonce_field('form', 'form-nonce') }}
</form>
<div class="alert">{{ form.message }}</div>