mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 15:57:23 -04:00
Fix 500 error from notifications/letter.json page
The letters notification page makes ajax calls to update the status - these were failing because it's making a POST request without a CSRF token. (The email and SMS notification pages contain a search form that includes the hidden CSRF input, so this was only occurring with the letters page.) This commit adds a hidden form for the letters page which just contains the CSRF token.
This commit is contained in:
@@ -42,6 +42,10 @@
|
|||||||
<input type="hidden" name="to" value="{{ search_form.to.data }}">
|
<input type="hidden" name="to" value="{{ search_form.to.data }}">
|
||||||
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
|
||||||
</form>
|
</form>
|
||||||
|
{% else %}
|
||||||
|
<form id="search-form" method="post">
|
||||||
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
|
||||||
|
</form>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<!--<p class="bottom-gutter">-->
|
<!--<p class="bottom-gutter">-->
|
||||||
<!--<a href="{{ download_link }}" download="download" class="heading-small">Download this report</a>-->
|
<!--<a href="{{ download_link }}" download="download" class="heading-small">Download this report</a>-->
|
||||||
|
|||||||
Reference in New Issue
Block a user