1
0
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:
Kyle Spearrin 2018-07-20 13:09:50 -04:00
parent 610825f985
commit 29d62be82c

View File

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