From d74c0fb0d2dcbd35bf7f202d16bd4572d03fd2fa Mon Sep 17 00:00:00 2001 From: Davidson Sousa Date: Mon, 5 Aug 2024 15:30:27 +0200 Subject: [PATCH] Dev certificate password; Layout changes --- .../Pages/Account/Manage/_Layout.cshtml | 22 ------------------- .../Pages/Account/Manage/_ManageNav.cshtml | 14 ------------ .../Pages/Account/Manage/_ViewStart.cshtml | 3 +++ src/CmsEngine.Ui/Program.cs | 2 +- .../Views/Shared/Cms/_Layout.cshtml | 4 ++-- 5 files changed, 6 insertions(+), 39 deletions(-) delete mode 100644 src/CmsEngine.Ui/Areas/Identity/Pages/Account/Manage/_Layout.cshtml delete mode 100644 src/CmsEngine.Ui/Areas/Identity/Pages/Account/Manage/_ManageNav.cshtml create mode 100644 src/CmsEngine.Ui/Areas/Identity/Pages/Account/Manage/_ViewStart.cshtml diff --git a/src/CmsEngine.Ui/Areas/Identity/Pages/Account/Manage/_Layout.cshtml b/src/CmsEngine.Ui/Areas/Identity/Pages/Account/Manage/_Layout.cshtml deleted file mode 100644 index d0938833..00000000 --- a/src/CmsEngine.Ui/Areas/Identity/Pages/Account/Manage/_Layout.cshtml +++ /dev/null @@ -1,22 +0,0 @@ -@{ - Layout = "/Areas/Identity/Pages/_Layout.cshtml"; -} - -

Manage your account

- -
-

Change your account settings

-
-
-
- -
-
- @RenderBody() -
-
-
- -@section Scripts { - @RenderSection("Scripts", required: false) -} diff --git a/src/CmsEngine.Ui/Areas/Identity/Pages/Account/Manage/_ManageNav.cshtml b/src/CmsEngine.Ui/Areas/Identity/Pages/Account/Manage/_ManageNav.cshtml deleted file mode 100644 index 70eaec46..00000000 --- a/src/CmsEngine.Ui/Areas/Identity/Pages/Account/Manage/_ManageNav.cshtml +++ /dev/null @@ -1,14 +0,0 @@ -@inject SignInManager SignInManager -@{ - var hasExternalLogins = (await SignInManager.GetExternalAuthenticationSchemesAsync()).Any(); -} - diff --git a/src/CmsEngine.Ui/Areas/Identity/Pages/Account/Manage/_ViewStart.cshtml b/src/CmsEngine.Ui/Areas/Identity/Pages/Account/Manage/_ViewStart.cshtml new file mode 100644 index 00000000..36b23c14 --- /dev/null +++ b/src/CmsEngine.Ui/Areas/Identity/Pages/Account/Manage/_ViewStart.cshtml @@ -0,0 +1,3 @@ +@{ + Layout = "/Views/Shared/Cms/_Layout.cshtml"; +} diff --git a/src/CmsEngine.Ui/Program.cs b/src/CmsEngine.Ui/Program.cs index c16cdd16..0879e3c9 100644 --- a/src/CmsEngine.Ui/Program.cs +++ b/src/CmsEngine.Ui/Program.cs @@ -18,7 +18,7 @@ // https://dotnetplaybook.com/custom-local-domain-using-https-kestrel-asp-net-core/ if (builder.Environment.IsDevelopment()) { - var certificatePassword = builder.Configuration.GetSection("Kestrel:Certificates:Password").Value; + var certificatePassword = builder.Configuration["CertPassword"]; Log.Debug("Dev environment: Using Kestrel with port 5001"); builder.WebHost.ConfigureKestrel(options => diff --git a/src/CmsEngine.Ui/Views/Shared/Cms/_Layout.cshtml b/src/CmsEngine.Ui/Views/Shared/Cms/_Layout.cshtml index 69c45ac8..53e740b1 100644 --- a/src/CmsEngine.Ui/Views/Shared/Cms/_Layout.cshtml +++ b/src/CmsEngine.Ui/Views/Shared/Cms/_Layout.cshtml @@ -46,7 +46,7 @@