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:
@ -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