mirror of
https://github.com/bitwarden/server.git
synced 2024-11-26 12:55:17 +01:00
allow delete verb
This commit is contained in:
parent
610825f985
commit
29d62be82c
@ -310,8 +310,9 @@ namespace Bit.Api.Controllers
|
||||
return new KeysResponseModel(user);
|
||||
}
|
||||
|
||||
[HttpDelete]
|
||||
[HttpPost("delete")]
|
||||
public async Task PostDelete([FromBody]DeleteAccountRequestModel model)
|
||||
public async Task Delete([FromBody]DeleteAccountRequestModel model)
|
||||
{
|
||||
var user = await _userService.GetUserByPrincipalAsync(User);
|
||||
if(user == null)
|
||||
|
Loading…
Reference in New Issue
Block a user