Fix CSRF token bug for bulk-move message forms
This commit is contained in:
parent
e0865bef12
commit
de38c3a20a
|
@ -18,9 +18,10 @@
|
|||
|
||||
<%def name="grid_tools()">
|
||||
${h.form(url('messages.move_bulk'), name='move-selected')}
|
||||
${h.hidden('destination', value='inbox')}
|
||||
${h.hidden('uuids')}
|
||||
<button type="submit">Move 0 selected to Inbox</button>
|
||||
${h.csrf_token(request)}
|
||||
${h.hidden('destination', value='inbox')}
|
||||
${h.hidden('uuids')}
|
||||
<button type="submit">Move 0 selected to Inbox</button>
|
||||
${h.end_form()}
|
||||
</%def>
|
||||
|
||||
|
|
|
@ -18,9 +18,10 @@
|
|||
|
||||
<%def name="grid_tools()">
|
||||
${h.form(url('messages.move_bulk'), name='move-selected')}
|
||||
${h.hidden('destination', value='archive')}
|
||||
${h.hidden('uuids')}
|
||||
<button type="submit">Move 0 selected to Archive</button>
|
||||
${h.csrf_token(request)}
|
||||
${h.hidden('destination', value='archive')}
|
||||
${h.hidden('uuids')}
|
||||
<button type="submit">Move 0 selected to Archive</button>
|
||||
${h.end_form()}
|
||||
</%def>
|
||||
|
||||
|
|
Loading…
Reference in a new issue