security: use more antiforgery tokens

This commit is contained in:
Gary Sharp
2025-07-25 12:32:44 +10:00
parent fd43d85778
commit 7deead494b
222 changed files with 12919 additions and 11728 deletions
@@ -1,5 +1,5 @@
@model Disco.Web.Areas.Config.Models.Export.EditModel
@using (Html.BeginForm(MVC.API.Export.Update(), FormMethod.Post))
@using (Html.BeginForm(MVC.API.Export.Update()))
{
@Html.AntiForgeryToken();
@Html.HiddenFor(m => m.Id)
@@ -199,7 +199,7 @@
<i class="fa fa-exclamation-triangle"></i>Are you sure you want to delete the Saved @Model.ExportTypeName: @Model.Name?
</p>
</div>
@using (Html.BeginForm(MVC.API.Export.Delete(), FormMethod.Post))
@using (Html.BeginForm(MVC.API.Export.Delete()))
{
@Html.AntiForgeryToken()
<input type="hidden" name="id" value="@Model.Id" />