feat: implement JWT token generation in VerifyOtpTokenCommandHandler and update related configurations
This commit is contained in:
+3
-1
@@ -15,6 +15,8 @@ public class ContractConfiguration : IEntityTypeConfiguration<Contract>
|
||||
builder.Property(entity => entity.Description).IsRequired(true);
|
||||
builder.Property(entity => entity.HtmlContent).IsRequired(true);
|
||||
builder.Property(entity => entity.Type).IsRequired(true);
|
||||
|
||||
|
||||
// Map legacy Code column from database as shadow property (not used in C# code)
|
||||
builder.Property<string>("Code").IsRequired(false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,6 +13,10 @@ public class OtpTokenConfiguration : IEntityTypeConfiguration<OtpToken>
|
||||
builder.Property(entity => entity.Id).UseIdentityColumn();
|
||||
builder.Property(entity => entity.Mobile).IsRequired(true);
|
||||
builder.Property(entity => entity.Purpose).IsRequired(true);
|
||||
|
||||
// Code is not persisted to database, only used in-memory before hashing
|
||||
builder.Ignore(entity => entity.Code);
|
||||
|
||||
builder.Property(entity => entity.CodeHash).IsRequired(true);
|
||||
builder.Property(entity => entity.ExpiresAt).IsRequired(true);
|
||||
builder.Property(entity => entity.Attempts).IsRequired(true);
|
||||
|
||||
Reference in New Issue
Block a user