This commit is contained in:
Владимир Данилов 2024-08-30 16:56:15 +04:00
parent bd61f8becf
commit 8cfb36459d
2 changed files with 2 additions and 1 deletions

View File

@ -15,7 +15,7 @@ namespace RenovationWorkDatabaseImplement
{
if (optionsBuilder.IsConfigured == false)
{
optionsBuilder.UseNpgsql(@"Host=localhost;Port=5432;Database=RenovationWorkDatabaseLabFive;Username=postgres;Password=postgres");
optionsBuilder.UseNpgsql(@"Host=localhost;Port=5432;Database=RenovationWorkDatabaseLabSeven;Username=postgres;Password=postgres");
}
base.OnConfiguring(optionsBuilder);

View File

@ -37,6 +37,7 @@ var app = builder.Build();
var mailSender = app.Services.GetService<AbstractMailWorker>();
mailSender?.MailConfig(new MailConfigBindingModel
{
MailLogin = builder.Configuration?.GetSection("MailLogin")?.Value?.ToString() ?? string.Empty,
MailPassword = builder.Configuration?.GetSection("MailPassword")?.Value?.ToString()
?? string.Empty,
SmtpClientHost = builder.Configuration?.GetSection("SmtpClientHost")?.Value?.ToString()