diff --git a/Services/EmailService.cs b/Services/EmailService.cs index 1cb28fb7ad394f3993539c83190cbc3f15e3b058..48e0904f0069cfc326dbac69f08c4adf3b1b13ba 100644 --- a/Services/EmailService.cs +++ b/Services/EmailService.cs @@ -35,6 +35,7 @@ public class EmailService : IEmailService using var smtp = new SmtpClient(); try { + smtp.CheckCertificateRevocation = false; await smtp.ConnectAsync("smtp.gmail.com", 587, false); await smtp.AuthenticateAsync(_emailConfig.Email, _emailConfig.Password); await smtp.SendAsync(email); diff --git a/Settings/ConnectionStrings.cs b/Settings/ConnectionStrings.cs index b39afcd908c698b79c5d634ce603ef11c5880156..bc9e8b1e2d71c3b8d3304970cb4f1300f2feb022 100644 --- a/Settings/ConnectionStrings.cs +++ b/Settings/ConnectionStrings.cs @@ -2,6 +2,6 @@ public class ConnectionStrings { - public string? DbConnectionString { get; set; } - public string? AzureBlobStorage { get; set; } + public string? DbConnectionString { get; set; } = ""; + public string? AzureBlobStorage { get; set; } = ""; } \ No newline at end of file diff --git a/Settings/EmailConfig.cs b/Settings/EmailConfig.cs index 594648139d935f9e91a9c3dde04541089243aa7c..3b3d380e0bf75e890f0c1cdae7e4ea8a9f6c7a22 100644 --- a/Settings/EmailConfig.cs +++ b/Settings/EmailConfig.cs @@ -2,6 +2,6 @@ namespace AuthenticationMicroservice.Settings; public class EmailConfig { - public string? Email { get; set; } - public string? Password { get; set; } + public string? Email { get; set; } = ""; + public string? Password { get; set; } = ""; } \ No newline at end of file diff --git a/Settings/FrontendStrings.cs b/Settings/FrontendStrings.cs index 71ce17a3f23a20292d51d3ac0558096047e4d728..6f8767375d188b86ca298a6c02128f6c402734eb 100644 --- a/Settings/FrontendStrings.cs +++ b/Settings/FrontendStrings.cs @@ -2,5 +2,5 @@ public class FrontendStrings { - public string? BaseUrl { get; set; } + public string? BaseUrl { get; set; } = ""; } \ No newline at end of file