diff --git a/src/Admin/Controllers/OrganizationsController.cs b/src/Admin/Controllers/OrganizationsController.cs index 2f8f64b2d..dce59ec0c 100644 --- a/src/Admin/Controllers/OrganizationsController.cs +++ b/src/Admin/Controllers/OrganizationsController.cs @@ -80,6 +80,8 @@ namespace Bit.Admin.Controllers return RedirectToAction("Edit", new { id }); } + [HttpPost] + [ValidateAntiForgeryToken] public async Task Delete(Guid id) { var organization = await _organizationRepository.GetByIdAsync(id); diff --git a/src/Admin/Controllers/UsersController.cs b/src/Admin/Controllers/UsersController.cs index 08d7a3757..0602762ab 100644 --- a/src/Admin/Controllers/UsersController.cs +++ b/src/Admin/Controllers/UsersController.cs @@ -77,6 +77,8 @@ namespace Bit.Admin.Controllers return RedirectToAction("Edit", new { id }); } + [HttpPost] + [ValidateAntiForgeryToken] public async Task Delete(Guid id) { var user = await _userRepository.GetByIdAsync(id); diff --git a/src/Admin/Views/Organizations/Edit.cshtml b/src/Admin/Views/Organizations/Edit.cshtml index d6e4db730..e2d3d6ce1 100644 --- a/src/Admin/Views/Organizations/Edit.cshtml +++ b/src/Admin/Views/Organizations/Edit.cshtml @@ -93,7 +93,7 @@
Modified
@Model.Organization.RevisionDate.ToString()
-
+

General

@@ -526,16 +526,16 @@
-
- -
- - - Delete - -
-
+
+ +
+ +
+ +
+
+
diff --git a/src/Admin/Views/Users/Edit.cshtml b/src/Admin/Views/Users/Edit.cshtml index a8bd8b5fc..5e9d992ea 100644 --- a/src/Admin/Views/Users/Edit.cshtml +++ b/src/Admin/Views/Users/Edit.cshtml @@ -73,7 +73,7 @@
Account Modified
@Model.User.AccountRevisionDate.ToString()
-
+

General

@@ -161,16 +161,16 @@
-
- -
- - - Delete - -
-
+
+ +
+ +
+ +
+
+