From 95277e1bdd4b221733c1d13a66006f7a45c5dafc Mon Sep 17 00:00:00 2001 From: Andrew Scott Date: Wed, 11 Sep 2024 14:58:21 -0700 Subject: [PATCH] fix: wrap complex template conditionals in parens to fix evaluation --- .../content/Coalesce.Starter.Vue.Web/Program.cs | 2 +- .../Coalesce.Starter.Vue.Web/src/components/HelloWorld.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/Coalesce.Vue.Template/content/Coalesce.Starter.Vue.Web/Program.cs b/templates/Coalesce.Vue.Template/content/Coalesce.Starter.Vue.Web/Program.cs index f3fe7a8fa..3cc7bb3da 100644 --- a/templates/Coalesce.Vue.Template/content/Coalesce.Starter.Vue.Web/Program.cs +++ b/templates/Coalesce.Vue.Template/content/Coalesce.Starter.Vue.Web/Program.cs @@ -107,7 +107,7 @@ app.MapCoalesceSecurityOverview("coalesce-security"); - #if !Identity + #if (!Identity) // TODO: Dummy authentication for initial development. // Replace this with a proper authentication scheme like // Windows Authentication, or an OIDC provider, or something else. diff --git a/templates/Coalesce.Vue.Template/content/Coalesce.Starter.Vue.Web/src/components/HelloWorld.vue b/templates/Coalesce.Vue.Template/content/Coalesce.Starter.Vue.Web/src/components/HelloWorld.vue index 083d5b8f7..03334791d 100644 --- a/templates/Coalesce.Vue.Template/content/Coalesce.Starter.Vue.Web/src/components/HelloWorld.vue +++ b/templates/Coalesce.Vue.Template/content/Coalesce.Starter.Vue.Web/src/components/HelloWorld.vue @@ -25,7 +25,7 @@ >create a migration with Entity Framework. - +

3. Add Authentication

Implement a proper authentication mechanism in Program.cs and remove the existing dummy authentication. If you want