From fc040dec50126522e15e0eeaeede34c61a0eccf8 Mon Sep 17 00:00:00 2001 From: jvyden Date: Fri, 19 Nov 2021 22:16:42 -0500 Subject: [PATCH] Add (non-functional) login form --- ProjectLighthouse/Pages/ExternalAuth/LoginForm.cshtml | 11 +++++++++++ .../Pages/ExternalAuth/LoginForm.cshtml.cs | 10 ++++++++++ ProjectLighthouse/ProjectLighthouse.csproj | 1 + ProjectLighthouse/Startup.cs | 6 +++++- 4 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 ProjectLighthouse/Pages/ExternalAuth/LoginForm.cshtml create mode 100644 ProjectLighthouse/Pages/ExternalAuth/LoginForm.cshtml.cs diff --git a/ProjectLighthouse/Pages/ExternalAuth/LoginForm.cshtml b/ProjectLighthouse/Pages/ExternalAuth/LoginForm.cshtml new file mode 100644 index 00000000..38611a97 --- /dev/null +++ b/ProjectLighthouse/Pages/ExternalAuth/LoginForm.cshtml @@ -0,0 +1,11 @@ +@page "/login" +@model LBPUnion.ProjectLighthouse.Pages.ExternalAuth.LoginForm + +@{ + Layout = "Layouts/BaseLayout"; +} +
+
+
+
+
\ No newline at end of file diff --git a/ProjectLighthouse/Pages/ExternalAuth/LoginForm.cshtml.cs b/ProjectLighthouse/Pages/ExternalAuth/LoginForm.cshtml.cs new file mode 100644 index 00000000..56009d49 --- /dev/null +++ b/ProjectLighthouse/Pages/ExternalAuth/LoginForm.cshtml.cs @@ -0,0 +1,10 @@ +using LBPUnion.ProjectLighthouse.Pages.Layouts; +using Microsoft.AspNetCore.Mvc; + +namespace LBPUnion.ProjectLighthouse.Pages.ExternalAuth +{ + public class LoginForm : BaseLayout + { + public IActionResult OnGet() => this.Page(); + } +} \ No newline at end of file diff --git a/ProjectLighthouse/ProjectLighthouse.csproj b/ProjectLighthouse/ProjectLighthouse.csproj index b576a35c..a4e601cc 100644 --- a/ProjectLighthouse/ProjectLighthouse.csproj +++ b/ProjectLighthouse/ProjectLighthouse.csproj @@ -13,6 +13,7 @@ + all diff --git a/ProjectLighthouse/Startup.cs b/ProjectLighthouse/Startup.cs index 01dbe063..18dc9c03 100644 --- a/ProjectLighthouse/Startup.cs +++ b/ProjectLighthouse/Startup.cs @@ -29,7 +29,11 @@ namespace LBPUnion.ProjectLighthouse public void ConfigureServices(IServiceCollection services) { services.AddControllers(); - services.AddRazorPages().WithRazorPagesAtContentRoot(); + #if DEBUG + services.AddRazorPages().WithRazorPagesAtContentRoot().AddRazorRuntimeCompilation(); + #else + services.AddRazorPages().WithRazorPagesAtContentRoot() + #endif services.AddMvc (