security: use more antiforgery tokens
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
ViewBag.Title = Html.ToBreadcrumb("Jobs", MVC.Job.Index(), string.Format("Job: {0}", Model.Job.Id), MVC.Job.Show(Model.Job.Id), "Lodge Insurance Claim");
|
||||
}
|
||||
@using (Html.BeginForm(MVC.Job.LogInsurance(), FormMethod.Post))
|
||||
@using (Html.BeginForm(MVC.Job.LogInsurance()))
|
||||
{
|
||||
@Html.AntiForgeryToken()
|
||||
@Html.ValidationSummary(true)
|
||||
@@ -172,7 +172,7 @@
|
||||
).append(
|
||||
$('<input>').attr({ type: 'hidden', name: 'ManualProviderReference', value: $('#ManualProviderReference').val() })
|
||||
).append(
|
||||
$('<input>').attr({ type: 'hidden', name: '__RequestVerificationToken', value: $providerId.closest('form').find('input[name="__RequestVerificationToken"]').val() })
|
||||
$('<input>').attr({ type: 'hidden', name: '__RequestVerificationToken', value: document.body.dataset.antiforgery })
|
||||
).appendTo('body').submit();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user