From 61901e54556b6fe19916d7997ccaa27456b62c57 Mon Sep 17 00:00:00 2001 From: Pieter-Jan Briers Date: Sun, 23 Jun 2024 18:54:38 +0200 Subject: [PATCH] Sprinkle [ValidateAntiForgeryToken] around the place more. I'm not sure this is actually necessary but can't hurt I guess. --- SS14.Admin/Pages/Bans/Index.cshtml.cs | 1 + SS14.Admin/Pages/RoleBans/Index.cshtml.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/SS14.Admin/Pages/Bans/Index.cshtml.cs b/SS14.Admin/Pages/Bans/Index.cshtml.cs index 7630cff..d976137 100644 --- a/SS14.Admin/Pages/Bans/Index.cshtml.cs +++ b/SS14.Admin/Pages/Bans/Index.cshtml.cs @@ -7,6 +7,7 @@ namespace SS14.Admin.Pages { + [ValidateAntiForgeryToken] public class BansModel : PageModel { private readonly PostgresServerDbContext _dbContext; diff --git a/SS14.Admin/Pages/RoleBans/Index.cshtml.cs b/SS14.Admin/Pages/RoleBans/Index.cshtml.cs index cf04137..5919c35 100644 --- a/SS14.Admin/Pages/RoleBans/Index.cshtml.cs +++ b/SS14.Admin/Pages/RoleBans/Index.cshtml.cs @@ -7,6 +7,7 @@ namespace SS14.Admin.Pages.RoleBans; +[ValidateAntiForgeryToken] public class Index : PageModel { private readonly PostgresServerDbContext _dbContext;