remvoe sanitzer from views and use extensions instead of keys

This commit is contained in:
2025-08-23 00:54:27 +02:00
parent a080aaec95
commit 7a011930df
13 changed files with 300 additions and 122 deletions

View File

@@ -46,7 +46,7 @@ public class TFARegController : ViewControllerBase
if (uuid is null || signature is null)
{
_logger.LogEnvelopeError(uuid: uuid, signature: signature, message: _localizer[WebKey.WrongEnvelopeReceiverId]);
_logger.LogEnvelopeError(uuid: uuid, signature: signature, message: _localizer.WrongEnvelopeReceiverId());
return Unauthorized();
}
@@ -86,7 +86,7 @@ public class TFARegController : ViewControllerBase
}
catch(Exception ex)
{
_logger.LogEnvelopeError(envelopeReceiverId: envelopeReceiverId, exception: ex, message: _localizer[WebKey.UnexpectedError]);
_logger.LogEnvelopeError(envelopeReceiverId: envelopeReceiverId, exception: ex, message: _localizer.WrongEnvelopeReceiverId());
return this.ViewInnerServiceError();
}
}