feat(TotpSmsParams): Erstellt, um die Konfiguration von Totp zu handhaben

This commit is contained in:
Developer 02
2025-01-31 10:22:37 +01:00
parent 06b1aa9560
commit e54d9d2da8
3 changed files with 46 additions and 10 deletions

View File

@@ -16,6 +16,7 @@ using DigitalData.EmailProfilerDispatcher;
using EnvelopeGenerator.Infrastructure;
using EnvelopeGenerator.Web.Sanitizers;
using EnvelopeGenerator.Application.Extensions;
using Microsoft.Extensions.DependencyInjection;
var logger = LogManager.Setup().LoadConfigurationFromAppSettings().GetCurrentClassLogger();
logger.Info("Logging initialized!");
@@ -49,6 +50,8 @@ try
// Add higher order services
builder.Services.AddScoped<EnvelopeOldService>();
builder.Services.Configure<TotpSmsParams>(config.GetSection("TotpSmsParams"));
// Add controllers and razor views
builder.Services.AddControllersWithViews(options =>
{