Add form security token to contact actions

- Add token to batch POST actions
- Add token to individual GET actions
This commit is contained in:
Hypolite Petovan 2021-09-06 12:23:15 -04:00
parent 0c8c0f7374
commit e9aa27b19f
3 changed files with 19 additions and 8 deletions

View file

@ -29,7 +29,8 @@
{{* we need the form container to make batch actions work *}}
<form name="batch_actions_submit" action="{{$baseurl}}/contact/batch/" method="POST">
<input type="hidden" name="redirect_url" value="{{$cmd}}"/>
<input type="hidden" name="redirect_url" value="{{$cmd}}" />
<input type="hidden" name="form_security_token" value="{{$form_security_token}}" />
{{* we put here a hidden input element. This is needed to transmit the batch actions with javascript*}}
<input type="hidden" class="batch-action no-input fakelist" name="batch_submit" value="{{$l}}">