Erfolglose Antwort wird als unbefugt eingestuft
This commit is contained in:
@@ -108,7 +108,7 @@ namespace EnvelopeGenerator.Web.Controllers
|
||||
if(uuid is null || signature is null)
|
||||
{
|
||||
_logger.LogEnvelopeError(uuid: uuid, signature: signature, message: _localizer[MessageKey.WrongEnvelopeReceiverId]);
|
||||
return BadRequest(_localizer[MessageKey.WrongEnvelopeReceiverId]);
|
||||
return Unauthorized();
|
||||
}
|
||||
|
||||
_logger.LogInformation($"Envelope UUID: [{uuid}]\nReceiver Signature: [{signature}]");
|
||||
@@ -174,7 +174,7 @@ namespace EnvelopeGenerator.Web.Controllers
|
||||
Fail: (messages, notices) =>
|
||||
{
|
||||
_logger.LogNotice(notices);
|
||||
return notices.HasFlag(Flag.SecurityBreach) ? Forbid() : StatusCode(StatusCodes.Status500InternalServerError, messages.Join());
|
||||
return Unauthorized();
|
||||
});
|
||||
}
|
||||
catch(Exception ex)
|
||||
@@ -226,7 +226,7 @@ namespace EnvelopeGenerator.Web.Controllers
|
||||
return Ok(new { EnvelopeUuid = envelopeUuid, ReceiverSignature = receiverSignature });
|
||||
}
|
||||
|
||||
[HttpGet("lang")]
|
||||
[NonAction]
|
||||
public IActionResult GetLanguage() => Ok(UserLanguage);
|
||||
|
||||
[HttpPost("lang")]
|
||||
|
||||
Reference in New Issue
Block a user