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
@@ -4,6 +4,7 @@
<div id="Config_LinkedGroup_Dialog" title="Linked Group" class="dialog">
<h3 id="Config_LinkedGroup_Title"></h3>
<form action="#" method="post">
@Html.AntiForgeryToken()
<table class="input">
<tbody>
<tr>
@@ -11,7 +12,7 @@
<label for="Config_LinkedGroup_Id">Linked Group:</label>
</th>
<td>
<input id="Config_LinkedGroup_Id" type="text" name="GroupId" />
<input id="Config_LinkedGroup_Id" type="text" name="GroupId" data-sourceurl="@(Url.Action(MVC.API.System.SearchGroupSubjects()))" />
</td>
</tr>
<tr>
@@ -59,7 +60,7 @@
dialogGroupId = $('#Config_LinkedGroup_Id');
dialogGroupId.focus(function () { $(this).select(); });
dialogGroupId.autocomplete({
source: '@(Url.Action(MVC.API.System.SearchGroupSubjects()))',
source: dialogGroupId.attr('data-sourceurl'),
minLength: 2,
select: function (e, ui) {
dialogGroupId.val(ui.item.Id);