mirror of
https://github.com/bitwarden/server.git
synced 2025-04-08 06:28:14 -05:00
disable send (#1096)
This commit is contained in:
parent
5778a903c6
commit
dd207aa840
@ -84,6 +84,7 @@ namespace Bit.Api.Controllers
|
|||||||
[HttpPost("")]
|
[HttpPost("")]
|
||||||
public async Task<SendResponseModel> Post([FromBody] SendRequestModel model)
|
public async Task<SendResponseModel> Post([FromBody] SendRequestModel model)
|
||||||
{
|
{
|
||||||
|
throw new NotFoundException();
|
||||||
model.ValidateCreation();
|
model.ValidateCreation();
|
||||||
var userId = _userService.GetProperUserId(User).Value;
|
var userId = _userService.GetProperUserId(User).Value;
|
||||||
var send = model.ToSend(userId, _sendService);
|
var send = model.ToSend(userId, _sendService);
|
||||||
@ -96,6 +97,7 @@ namespace Bit.Api.Controllers
|
|||||||
[DisableFormValueModelBinding]
|
[DisableFormValueModelBinding]
|
||||||
public async Task<SendResponseModel> PostFile()
|
public async Task<SendResponseModel> PostFile()
|
||||||
{
|
{
|
||||||
|
throw new NotFoundException();
|
||||||
if (!Request?.ContentType.Contains("multipart/") ?? true)
|
if (!Request?.ContentType.Contains("multipart/") ?? true)
|
||||||
{
|
{
|
||||||
throw new BadRequestException("Invalid content.");
|
throw new BadRequestException("Invalid content.");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user