refactor(Receiver): TotpSecretkey und TotpExpiration Eigenschaften zu Entity und DTOs hinzugefügt.

This commit is contained in:
Developer 02
2024-12-10 11:09:25 +01:00
parent 85c33eb0f8
commit 88d01e4ac7
4 changed files with 12 additions and 4 deletions

View File

@@ -4,7 +4,7 @@ using System.Text;
namespace EnvelopeGenerator.Application.DTOs.Receiver
{
public record ReceiverCreateDto([EmailAddress] string EmailAddress)
public record ReceiverCreateDto([EmailAddress] string EmailAddress, string? TotpSecretkey = null, DateTime? TotpExpiration = null)
{
public string Signature => sha256HexOfMail.Value;

View File

@@ -8,7 +8,9 @@ namespace EnvelopeGenerator.Application.DTOs.Receiver
int Id,
string EmailAddress,
string Signature,
DateTime AddedWhen
DateTime AddedWhen,
string? TotpSecretkey = null,
DateTime? TotpExpiration = null
) : BaseDTO<int>(Id)
{
[JsonIgnore]

View File

@@ -2,5 +2,5 @@
namespace EnvelopeGenerator.Application.DTOs.Receiver
{
public record ReceiverUpdateDto(int Id) : IUnique<int>;
}
public record ReceiverUpdateDto(int Id, string? TotpSecretkey = null, DateTime? TotpExpiration = null) : IUnique<int>;
}