Refactored a few more methods that rely on the IConfiguration object to use IConfigHelper instead.

This commit is contained in:
DESKTOP-T0O5CDB\DESK-555BD
2024-11-25 08:40:14 -07:00
parent d4dda481be
commit 230433f784
7 changed files with 17 additions and 11 deletions

View File

@@ -28,7 +28,7 @@ namespace CarCareTracker.Middleware
_httpContext = httpContext;
_dataProtector = securityProvider.CreateProtector("login");
_loginLogic = loginLogic;
enableAuth = bool.Parse(configuration["EnableAuth"]);
enableAuth = bool.Parse(configuration["EnableAuth"] ?? "false");
}
protected override async Task<AuthenticateResult> HandleAuthenticateAsync()
{