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