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
+6 -5
View File
@@ -8,6 +8,7 @@
<div id="Devices_Import">
@using (Html.BeginForm(MVC.API.Device.ImportBegin(), FormMethod.Post, new { enctype = "multipart/form-data" }))
{
@Html.AntiForgeryToken()
<div id="importDialog" class="form" style="width: 450px">
<h2>Import Devices</h2>
<table>
@@ -101,7 +102,7 @@
}
</td>
</tr>
</tr>
}
</tbody>
</table>
@@ -186,9 +187,9 @@
modal: true,
autoOpen: false
},
$DeviceModelsDialog = null,
$DeviceProfilesDialog = null,
$DeviceBatchesDialog = null;
$DeviceModelsDialog = null,
$DeviceProfilesDialog = null,
$DeviceBatchesDialog = null;
$('#Devices_Import_Documentation_DeviceModels_Button').click(function (e) {
e.preventDefault();
@@ -235,4 +236,4 @@
});
});
</script>
}
}