From f9fdfdb88fa925aeaf95e2baf0f5c80fb14c2daa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9sar?= Date: Thu, 30 Nov 2023 11:07:05 +0100 Subject: [PATCH] FIX: Fixing disableAuth bug. (#54) ## Description Fixes and closes a bug with the `disableAuth` flag. ## Related Issue Fixes and closes #53 ## Motivation and Context To fix a reported bug. ## How Has This Been Tested? Generating a solution with `disableAuth` flag and build it doesn't generate an error anymore. ## Screenshots (if appropriate): ## Types of changes - [X] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) ## Checklist: - [X] My code follows the code style of this project. - [ ] My change requires a change to the documentation. - [ ] I have updated the documentation accordingly. - [X] I have read the **CONTRIBUTING** document. - [ ] I have added tests to cover my changes. - [X] All new and existing tests passed. --- .../Backend/Solution/Monaco.Template.Backend.Api/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Content/Backend/Solution/Monaco.Template.Backend.Api/Program.cs b/src/Content/Backend/Solution/Monaco.Template.Backend.Api/Program.cs index 13ce86a..8809179 100644 --- a/src/Content/Backend/Solution/Monaco.Template.Backend.Api/Program.cs +++ b/src/Content/Backend/Solution/Monaco.Template.Backend.Api/Program.cs @@ -5,8 +5,8 @@ using Microsoft.AspNetCore.Mvc; using Monaco.Template.Backend.Application.DependencyInjection; using Monaco.Template.Backend.Application.Infrastructure.Context; -using Monaco.Template.Backend.Api.Auth; #if (!disableAuth) +using Monaco.Template.Backend.Api.Auth; using Monaco.Template.Backend.Common.Api.Auth; #endif using Monaco.Template.Backend.Common.Api.Cors;