From 0bfec269491f74625fa52d7323ac6f4bc7b42584 Mon Sep 17 00:00:00 2001 From: James Gunn Date: Thu, 28 Sep 2023 15:37:02 +0100 Subject: [PATCH] Use a TagHelperInitializer to set the Antiforgery attribute --- .../Pages/Cases/EditCase/Accept.cshtml | 2 +- .../Pages/Cases/EditCase/Reject.cshtml | 2 +- .../Pages/Persons/Index.cshtml | 2 +- .../Pages/SignOut.cshtml | 4 +- .../Pages/Users/AddUser/Confirm.cshtml | 4 +- .../Pages/Users/AddUser/Index.cshtml | 4 +- .../Pages/Users/EditUser.cshtml | 2 +- .../TeachingRecordSystem.SupportUi/Program.cs | 6 +- .../TagHelpers/FormTagHelperInitializer.cs | 16 ++++++ .../TagHelpers/TrsActionFormTagHelper.cs | 55 ------------------- 10 files changed, 31 insertions(+), 66 deletions(-) create mode 100644 TeachingRecordSystem/src/TeachingRecordSystem.SupportUi/TagHelpers/FormTagHelperInitializer.cs delete mode 100644 TeachingRecordSystem/src/TeachingRecordSystem.SupportUi/TagHelpers/TrsActionFormTagHelper.cs diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.SupportUi/Pages/Cases/EditCase/Accept.cshtml b/TeachingRecordSystem/src/TeachingRecordSystem.SupportUi/Pages/Cases/EditCase/Accept.cshtml index 33485c2ede..f2daeff5e1 100644 --- a/TeachingRecordSystem/src/TeachingRecordSystem.SupportUi/Pages/Cases/EditCase/Accept.cshtml +++ b/TeachingRecordSystem/src/TeachingRecordSystem.SupportUi/Pages/Cases/EditCase/Accept.cshtml @@ -11,7 +11,7 @@

@ViewBag.Title

-
+ Current diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.SupportUi/Pages/Cases/EditCase/Reject.cshtml b/TeachingRecordSystem/src/TeachingRecordSystem.SupportUi/Pages/Cases/EditCase/Reject.cshtml index 320628d0a3..ef3f086d0c 100644 --- a/TeachingRecordSystem/src/TeachingRecordSystem.SupportUi/Pages/Cases/EditCase/Reject.cshtml +++ b/TeachingRecordSystem/src/TeachingRecordSystem.SupportUi/Pages/Cases/EditCase/Reject.cshtml @@ -12,7 +12,7 @@

@ViewBag.Title

- + diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.SupportUi/Pages/Persons/Index.cshtml b/TeachingRecordSystem/src/TeachingRecordSystem.SupportUi/Pages/Persons/Index.cshtml index 52d35da1af..61151120a7 100644 --- a/TeachingRecordSystem/src/TeachingRecordSystem.SupportUi/Pages/Persons/Index.cshtml +++ b/TeachingRecordSystem/src/TeachingRecordSystem.SupportUi/Pages/Persons/Index.cshtml @@ -10,7 +10,7 @@
- +