From 67645cfd058e42b42f5de267a0f7089f862a444d Mon Sep 17 00:00:00 2001 From: daniel-c-harvey Date: Sat, 20 Jun 2026 00:27:01 -0400 Subject: [PATCH] wire Mailtrap TestInbox config in DeepDrftAPI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Read AuthBlocks:Email:TestInbox from config (no throw — optional sandbox key). Add TestInbox placeholder to authblocks.example.json. --- DeepDrftAPI/Program.cs | 1 + DeepDrftAPI/environment/authblocks.example.json | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/DeepDrftAPI/Program.cs b/DeepDrftAPI/Program.cs index 7fcfc64..57ae729 100644 --- a/DeepDrftAPI/Program.cs +++ b/DeepDrftAPI/Program.cs @@ -109,6 +109,7 @@ builder.Services.AddAuthBlocks(options => ?? throw new InvalidOperationException("AuthBlocks:Email:Token is required"); options.EmailConnection.FromAddress = builder.Configuration["AuthBlocks:Email:From"] ?? throw new InvalidOperationException("AuthBlocks:Email:From is required"); + options.EmailConnection.TestInbox = builder.Configuration["AuthBlocks:Email:TestInbox"]; options.AdminUserSettings = new AdminUserSettings { diff --git a/DeepDrftAPI/environment/authblocks.example.json b/DeepDrftAPI/environment/authblocks.example.json index 3a8b58f..497a5c3 100644 --- a/DeepDrftAPI/environment/authblocks.example.json +++ b/DeepDrftAPI/environment/authblocks.example.json @@ -9,7 +9,8 @@ "Email": { "Host": "smtp.your-provider.com", "Token": "your-email-token-here", - "From": "noreply@yourdomain.com" + "From": "noreply@yourdomain.com", + "TestInbox": "" }, "Admin": { "UserName": "admin",