wire Mailtrap TestInbox config in DeepDrftAPI

Read AuthBlocks:Email:TestInbox from config (no throw — optional sandbox key). Add TestInbox placeholder to authblocks.example.json.
This commit is contained in:
daniel-c-harvey
2026-06-20 00:27:01 -04:00
parent a2ed334d0d
commit 67645cfd05
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -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
{