Add (non-functional) login form

This commit is contained in:
jvyden 2021-11-19 22:16:42 -05:00
parent 0073461e97
commit fc040dec50
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278
4 changed files with 27 additions and 1 deletions

View file

@ -0,0 +1,11 @@
@page "/login"
@model LBPUnion.ProjectLighthouse.Pages.ExternalAuth.LoginForm
@{
Layout = "Layouts/BaseLayout";
}
<form>
<input type="text" name="username"><br>
<input type="password" name="password" aria-label="Password"><br>
<input type="submit"><br>
</form>

View file

@ -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();
}
}

View file

@ -13,6 +13,7 @@
<PackageReference Include="JetBrains.Annotations" Version="2021.3.0"/>
<PackageReference Include="Kettu" Version="1.2.1"/>
<PackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="6.0.0"/>
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="6.0.0"/>
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="6.0.0"/>
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="6.0.0">
<PrivateAssets>all</PrivateAssets>

View file

@ -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
(