mirror of
https://github.com/bitwarden/server.git
synced 2024-11-29 13:25: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);
|
return new KeysResponseModel(user);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[HttpDelete]
|
||||||
[HttpPost("delete")]
|
[HttpPost("delete")]
|
||||||
public async Task PostDelete([FromBody]DeleteAccountRequestModel model)
|
public async Task Delete([FromBody]DeleteAccountRequestModel model)
|
||||||
{
|
{
|
||||||
var user = await _userService.GetUserByPrincipalAsync(User);
|
var user = await _userService.GetUserByPrincipalAsync(User);
|
||||||
if(user == null)
|
if(user == null)
|
||||||
|
Loading…
Reference in New Issue
Block a user