Update CreateNewOtpTokenCommandHandler.cs
This commit is contained in:
@@ -53,7 +53,8 @@ public class CreateNewOtpTokenCommandHandler : IRequestHandler<CreateNewOtpToken
|
|||||||
CodeHash = codeHash,
|
CodeHash = codeHash,
|
||||||
ExpiresAt = now.Add(Ttl),
|
ExpiresAt = now.Add(Ttl),
|
||||||
Attempts = 0,
|
Attempts = 0,
|
||||||
IsUsed = false
|
IsUsed = false,
|
||||||
|
|
||||||
};
|
};
|
||||||
await _context.OtpTokens.AddAsync(entity, cancellationToken);
|
await _context.OtpTokens.AddAsync(entity, cancellationToken);
|
||||||
entity.AddDomainEvent(new CreateNewOtpTokenEvent(entity));
|
entity.AddDomainEvent(new CreateNewOtpTokenEvent(entity));
|
||||||
|
|||||||
Reference in New Issue
Block a user