chore(config): Verbindungsschlüssel umbenennen

This commit is contained in:
Developer 02
2024-09-09 11:50:38 +02:00
parent eea1090711
commit 15bc34ba95
3 changed files with 5 additions and 3 deletions

View File

@@ -6,7 +6,6 @@ using Microsoft.AspNetCore.Authentication.Cookies;
using NLog.Web;
using NLog;
using DigitalData.Core.API;
using DigitalData.UserManager.API;
using DigitalData.UserManager.API.Controllers;
using DigitalData.UserManager.Application.Services;
@@ -83,7 +82,7 @@ try {
cnn_str = new(() =>
{
var encryptor = app.Services.GetRequiredService<Encryptor>();
var eCnnStr = config.GetConnectionString("DD_ECM_Connection") ?? throw new InvalidOperationException("Connection string 'DD_ECM_Connection' is missing from the configuration.");
var eCnnStr = config.GetConnectionString("UM_DEF") ?? throw new InvalidOperationException("Connection string 'DD_ECM_Connection' is missing from the configuration.");
var cnnStr = encryptor.Decrypt(eCnnStr);
return cnnStr;
});