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..b867aa2 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",