Browse Source

Removed anti-forgery attribute (because always true)

pull/279/head
yekalkan 9 years ago
parent
commit
c8e12ebf1f
  1. 4
      src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/TagHelpers/Form/AbpDynamicformTagHelper.cs

4
src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/TagHelpers/Form/AbpDynamicformTagHelper.cs

@ -22,7 +22,6 @@ namespace Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Form
#region MvcFormTagHelperAttiributes #region MvcFormTagHelperAttiributes
private const string ActionAttributeName = "asp-action"; private const string ActionAttributeName = "asp-action";
private const string AntiforgeryAttributeName = "asp-antiforgery";
private const string AreaAttributeName = "asp-area"; private const string AreaAttributeName = "asp-area";
private const string PageAttributeName = "asp-page"; private const string PageAttributeName = "asp-page";
private const string PageHandlerAttributeName = "asp-page-handler"; private const string PageHandlerAttributeName = "asp-page-handler";
@ -47,9 +46,6 @@ namespace Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Form
[HtmlAttributeName(PageHandlerAttributeName)] [HtmlAttributeName(PageHandlerAttributeName)]
public string PageHandler { get; set; } public string PageHandler { get; set; }
[HtmlAttributeName(AntiforgeryAttributeName)]
public bool? Antiforgery { get; set; }
[HtmlAttributeName(FragmentAttributeName)] [HtmlAttributeName(FragmentAttributeName)]
public string Fragment { get; set; } public string Fragment { get; set; }

Loading…
Cancel
Save