Add form nonce to custom form code

This commit is contained in:
Flavio Copes 2015-12-18 10:56:34 +01:00
parent 2e1769935c
commit 483bfe3e55

View file

@ -15,4 +15,7 @@
<button class="button" type="{{ button.type|default('submit') }}">{{ button.value|default('Submit') }}</button> <button class="button" type="{{ button.type|default('submit') }}">{{ button.value|default('Submit') }}</button>
{% endfor %} {% endfor %}
</div> </div>
{{ nonce_field('form', 'form-nonce') }}
</form> </form>