Fix post edit action

- Add CSRF to post/page list pages (for deletion)
This commit is contained in:
2022-05-23 00:09:09 -04:00
parent 2c2db62e65
commit 664704d3d5
3 changed files with 8 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
<h2 class="my-3">{{ page_title }}</h2>
<article>
<form action="{{ "/admin/post/save" | relative_link }}" method="post">
<form action="{{ "admin/post/save" | relative_link }}" method="post">
<input type="hidden" name="{{ csrf.form_field_name }}" value="{{ csrf.request_token }}">
<input type="hidden" name="postId" value="{{ model.post_id }}">
<div class="container">