Skip to content

Commit

Permalink
nopSolutions#4062 Added anti forgery token for all admin view
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyKulagin committed Dec 13, 2019
1 parent d033cbe commit 3f01b71
Show file tree
Hide file tree
Showing 52 changed files with 7 additions and 67 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
var hideSearchBlock = genericAttributeService.GetAttribute<bool>(workContext.CurrentCustomer, hideSearchBlockAttributeName);
}

<nop-antiforgery-token />
<div class="content-header clearfix">
<h1 class="pull-left">
@T("Admin.Configuration.ActivityLog.ActivityLog")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
var hideSearchBlock = genericAttributeService.GetAttribute<bool>(workContext.CurrentCustomer, hideSearchBlockAttributeName);
}

<nop-antiforgery-token />
<div class="content-header clearfix">
<h1 class="pull-left">
@T("Admin.Affiliates")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
var hideSearchBlock = genericAttributeService.GetAttribute<bool>(workContext.CurrentCustomer, hideSearchBlockAttributeName);
}

<nop-antiforgery-token />
<div class="content-header clearfix">
<h1 class="pull-left">
@T("Admin.ContentManagement.Blog.Comments")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
var hideSearchBlock = genericAttributeService.GetAttribute<bool>(workContext.CurrentCustomer, hideSearchBlockAttributeName);
}

<nop-antiforgery-token />
<div class="content-header clearfix">
<h1 class="pull-left">
@T("Admin.ContentManagement.Blog.BlogPosts")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
var hideSearchBlock = genericAttributeService.GetAttribute<bool>(workContext.CurrentCustomer, hideSearchBlockAttributeName);
}

<nop-antiforgery-token />
<div class="content-header clearfix">
<h1 class="pull-left">
@T("Admin.Promotions.Campaigns")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
const string hideSearchBlockAttributeName = "CategoryPage.HideSearchBlock";
var hideSearchBlock = genericAttributeService.GetAttribute<bool>(workContext.CurrentCustomer, hideSearchBlockAttributeName);
}
<nop-antiforgery-token />
<div class="content-header clearfix">
<h1 class="pull-left">
@T("Admin.Catalog.Categories")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
var hideSearchBlock = genericAttributeService.GetAttribute<bool>(workContext.CurrentCustomer, hideSearchBlockAttributeName);
}

<nop-antiforgery-token />
<div class="content-header clearfix">
<h1 class="pull-left">
@T("Admin.System.SeNames")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
Html.SetActiveMenuItemSystemName("Countries");
}

<nop-antiforgery-token />
<div class="content-header clearfix">
<h1 class="pull-left">
@T("Admin.Configuration.Countries")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
var hideSearchBlock = genericAttributeService.GetAttribute<bool>(workContext.CurrentCustomer, hideSearchBlockAttributeName);
}

<nop-antiforgery-token />
<div class="content-header clearfix">
<h1 class="pull-left">
@T("Admin.Promotions.Discounts")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
var hideSearchBlock = genericAttributeService.GetAttribute<bool>(workContext.CurrentCustomer, hideSearchBlockAttributeName);
}

<nop-antiforgery-token />
<div class="content-header clearfix">
<h1 class="pull-left">
@T("Admin.GiftCards")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
var canManageProducts = permissionService.Authorize(StandardPermissionProvider.ManageProducts);
var canManageReturnRequests = permissionService.Authorize(StandardPermissionProvider.ManageReturnRequests);
}
<nop-antiforgery-token />

<div class="content-header">
<h1>
@T("Admin.Dashboard")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
Html.SetActiveMenuItemSystemName("Languages");
}

<nop-antiforgery-token />
<div class="content-header clearfix">
<h1 class="pull-left">
@T("Admin.Configuration.Languages")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
var hideSearchBlock = genericAttributeService.GetAttribute<bool>(workContext.CurrentCustomer, hideSearchBlockAttributeName);
}

<nop-antiforgery-token />
<div class="content-header clearfix">
<h1 class="pull-left">
@T("Admin.Catalog.Manufacturers")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
var hideWeightsBlock = genericAttributeService.GetAttribute<bool>(workContext.CurrentCustomer, hideWeightsBlockAttributeName);
}

<nop-antiforgery-token />
<div class="content-header clearfix">
<h1 class="pull-left">
@T("Admin.Configuration.Shipping.Measures")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
var hideSearchBlock = genericAttributeService.GetAttribute<bool>(workContext.CurrentCustomer, hideSearchBlockAttributeName);
}

<nop-antiforgery-token />
<div class="content-header clearfix">
<h1 class="pull-left">
@T("Admin.ContentManagement.MessageTemplates")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
var hideSearchBlock = genericAttributeService.GetAttribute<bool>(workContext.CurrentCustomer, hideSearchBlockAttributeName);
}

<nop-antiforgery-token />
<div class="content-header clearfix">
<h1 class="pull-left">
@T("Admin.ContentManagement.News.Comments")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
var hideSearchBlock = genericAttributeService.GetAttribute<bool>(workContext.CurrentCustomer, hideSearchBlockAttributeName);
}

<nop-antiforgery-token />
<div class="content-header clearfix">
<h1 class="pull-left">
@T("Admin.ContentManagement.News.NewsItems")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
Html.SetActiveMenuItemSystemName("Online customers");
}

<nop-antiforgery-token />
<div class="content-header clearfix">
<h1 class="pull-left">
@T("Admin.Customers.OnlineCustomers")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
var hideSearchBlock = genericAttributeService.GetAttribute<bool>(workContext.CurrentCustomer, hideSearchBlockAttributeName);
}

<nop-antiforgery-token />
<div class="content-header clearfix">
<h1 class="pull-left">
@string.Format(T("Admin.Orders.Products.AddNew.Title1").Text, Model.OrderId)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
Html.SetActiveMenuItemSystemName("Payment restrictions");
}

<nop-antiforgery-token />

<form asp-controller="Payment" asp-action="MethodRestrictions" method="post">
<div class="content-header clearfix">
<h1 class="pull-left">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
Html.SetActiveMenuItemSystemName("Payment methods");
}

<nop-antiforgery-token />

<div class="content-header clearfix">
<h1 class="pull-left">
@T("Admin.Configuration.Payment.Methods")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
var hideSearchBlock = genericAttributeService.GetAttribute<bool>(workContext.CurrentCustomer, hideSearchBlockAttributeName);
}

<nop-antiforgery-token />
<form asp-controller="Plugin" asp-action="List" id="plugins-form-local">
<div class="content-header clearfix">
<h1 class="pull-left">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
var hideSearchBlock = genericAttributeService.GetAttribute<bool>(workContext.CurrentCustomer, hideSearchBlockAttributeName);
}

<nop-antiforgery-token />
<form asp-controller="Plugin" asp-action="OfficialFeed" id="plugins-form-official-feed">
<div class="content-header clearfix">
<h1 class="pull-left">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
var hideSearchBlock = genericAttributeService.GetAttribute<bool>(workContext.CurrentCustomer, hideSearchBlockAttributeName);
}

<nop-antiforgery-token />
<div class="content-header clearfix">
<h1 class="pull-left">
@T("Admin.ContentManagement.Polls")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
ViewBag.PageTitle = T("Admin.Catalog.Products.Fields.RequiredProductIds.Choose").Text;
}


<nop-antiforgery-token />
<div class="content-header clearfix">
<h1 class="pull-left">
@T("Admin.Catalog.Products.Fields.RequiredProductIds.Choose")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
Html.SetActiveMenuItemSystemName("Product attributes");
}

<nop-antiforgery-token />
<div class="content-header clearfix">
<h1 class="pull-left">
@T("Admin.Catalog.Attributes.ProductAttributes")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
}
@inject IStoreService storeService

<nop-antiforgery-token />
<div class="content-header clearfix">
<h1 class="pull-left">
@T("Admin.Catalog.ProductReviews")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
Html.SetActiveMenuItemSystemName("Recurring payments");
}

<nop-antiforgery-token />
<div class="content-header clearfix">
<h1 class="pull-left">
@T("Admin.RecurringPayments")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
var hideSearchBlock = genericAttributeService.GetAttribute<bool>(workContext.CurrentCustomer, hideSearchBlockAttributeName);
}

<nop-antiforgery-token />

<div class="content-header clearfix">
<h1 class="pull-left">
@T("Admin.Reports.Customers.BestBy.BestByNumberOfOrders")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
var hideSearchBlock = genericAttributeService.GetAttribute<bool>(workContext.CurrentCustomer, hideSearchBlockAttributeName);
}

<nop-antiforgery-token />

<div class="content-header clearfix">
<h1 class="pull-left">
@T("Admin.Reports.Customers.BestBy.BestByOrderTotal")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
var hideSearchBlock = genericAttributeService.GetAttribute<bool>(workContext.CurrentCustomer, hideSearchBlockAttributeName);
}

<nop-antiforgery-token />
<div class="content-header clearfix">
<h1 class="pull-left">
@T("Admin.Reports.Sales.Bestsellers")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
var hideSearchBlock = genericAttributeService.GetAttribute<bool>(workContext.CurrentCustomer, hideSearchBlockAttributeName);
}

<nop-antiforgery-token />
<div class="content-header clearfix">
<h1 class="pull-left">
@T("Admin.Reports.Sales.Country")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
var hideSearchBlock = genericAttributeService.GetAttribute<bool>(workContext.CurrentCustomer, hideSearchBlockAttributeName);
}

<nop-antiforgery-token />
<div class="content-header clearfix">
<h1 class="pull-left">
@T("Admin.Reports.Sales.NeverSold")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,11 @@
Html.SetActiveMenuItemSystemName("Registered customers");
}

<nop-antiforgery-token />
<div class="content-header clearfix">
<h1 class="pull-left">
@T("Admin.Reports.Customers.RegisteredCustomers")
</h1>
</div>


<div class="content">
<div class="form-horizontal">
<div class="panel-group">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
var hideSearchBlock = genericAttributeService.GetAttribute<bool>(workContext.CurrentCustomer, hideSearchBlockAttributeName);
}

<nop-antiforgery-token />
<div class="content-header clearfix">
<h1 class="pull-left">
@T("Admin.ReturnRequests")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
Html.SetActiveMenuItemSystemName("Schedule tasks");
}

<nop-antiforgery-token />
<div class="content-header clearfix">
<h1 class="pull-left">
@T("Admin.System.ScheduleTasks")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
var hideSearchBlock = genericAttributeService.GetAttribute<bool>(workContext.CurrentCustomer, hideSearchBlockAttributeName);
}

<nop-antiforgery-token />
<div class="content-header clearfix">
<h1 class="pull-left">
@T("Admin.Configuration.Settings.AllSettings")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@
<div class="content-wrapper">
@await Html.PartialAsync("Notifications")
<div>
<nop-antiforgery-token />
@RenderBody()
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
var hideRangesBlock = genericAttributeService.GetAttribute<bool>(workContext.CurrentCustomer, hideRangesBlockAttributeName);
}


<nop-antiforgery-token />
<div class="content-header clearfix">
<h1 class="pull-left">
@T("Admin.Configuration.Shipping.DatesAndRanges")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
Html.SetActiveMenuItemSystemName("Shipping providers");
}

<nop-antiforgery-token />
<div class="content-header clearfix">
<h1 class="pull-left">
@T("Admin.Configuration.Shipping.Methods")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
Html.SetActiveMenuItemSystemName("Pickup points");
}

<nop-antiforgery-token />
<div class="content-header clearfix">
<h1 class="pull-left">
@T("Admin.Configuration.Shipping.PickupPointProviders")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
Html.SetActiveMenuItemSystemName("Shipping providers");
}

<nop-antiforgery-token />
<div class="content-header clearfix">
<h1 class="pull-left">
@T("Admin.Configuration.Shipping.Providers.Title")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
Html.SetActiveMenuItemSystemName("Warehouses");
}

<nop-antiforgery-token />
<div class="content-header clearfix">
<h1 class="pull-left">
@T("Admin.Configuration.Shipping.Warehouses")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
var hideSearchBlock = genericAttributeService.GetAttribute<bool>(workContext.CurrentCustomer, hideSearchBlockAttributeName);
}

<nop-antiforgery-token />
<div class="content-header clearfix">
<h1 class="pull-left">
@T("Admin.CurrentCarts.CartsAndWishlists")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
Html.SetActiveMenuItemSystemName("Specification attributes");
}

<nop-antiforgery-token />
<div class="content-header clearfix">
<h1 class="pull-left">
@T("Admin.Catalog.Attributes.SpecificationAttributes")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
Html.SetActiveMenuItemSystemName("Stores");
}

<nop-antiforgery-token />
<div class="content-header clearfix">
<h1 class="pull-left">
@T("Admin.Configuration.Stores")
Expand Down
Loading

0 comments on commit 3f01b71

Please sign in to comment.