1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-02 00:22:50 -05:00

CRSF protection on deletes

This commit is contained in:
Kyle Spearrin
2018-03-22 21:21:57 -04:00
parent e920c8e9d2
commit ab370b6ca4
4 changed files with 30 additions and 26 deletions

View File

@ -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);