mirror of
https://github.com/bitwarden/server
synced 2025-12-13 14:53:34 +00:00
CRSF protection on deletes
This commit is contained in:
@@ -80,6 +80,8 @@ namespace Bit.Admin.Controllers
|
||||
return RedirectToAction("Edit", new { id });
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
[ValidateAntiForgeryToken]
|
||||
public async Task<IActionResult> Delete(Guid id)
|
||||
{
|
||||
var organization = await _organizationRepository.GetByIdAsync(id);
|
||||
|
||||
Reference in New Issue
Block a user