mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-23 21:51:29 +00:00
Add (non-functional) login form
This commit is contained in:
parent
0073461e97
commit
fc040dec50
4 changed files with 27 additions and 1 deletions
11
ProjectLighthouse/Pages/ExternalAuth/LoginForm.cshtml
Normal file
11
ProjectLighthouse/Pages/ExternalAuth/LoginForm.cshtml
Normal 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>
|
10
ProjectLighthouse/Pages/ExternalAuth/LoginForm.cshtml.cs
Normal file
10
ProjectLighthouse/Pages/ExternalAuth/LoginForm.cshtml.cs
Normal 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();
|
||||||
|
}
|
||||||
|
}
|
|
@ -13,6 +13,7 @@
|
||||||
<PackageReference Include="JetBrains.Annotations" Version="2021.3.0"/>
|
<PackageReference Include="JetBrains.Annotations" Version="2021.3.0"/>
|
||||||
<PackageReference Include="Kettu" Version="1.2.1"/>
|
<PackageReference Include="Kettu" Version="1.2.1"/>
|
||||||
<PackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="6.0.0"/>
|
<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" Version="6.0.0"/>
|
||||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="6.0.0">
|
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="6.0.0">
|
||||||
<PrivateAssets>all</PrivateAssets>
|
<PrivateAssets>all</PrivateAssets>
|
||||||
|
|
|
@ -29,7 +29,11 @@ namespace LBPUnion.ProjectLighthouse
|
||||||
public void ConfigureServices(IServiceCollection services)
|
public void ConfigureServices(IServiceCollection services)
|
||||||
{
|
{
|
||||||
services.AddControllers();
|
services.AddControllers();
|
||||||
services.AddRazorPages().WithRazorPagesAtContentRoot();
|
#if DEBUG
|
||||||
|
services.AddRazorPages().WithRazorPagesAtContentRoot().AddRazorRuntimeCompilation();
|
||||||
|
#else
|
||||||
|
services.AddRazorPages().WithRazorPagesAtContentRoot()
|
||||||
|
#endif
|
||||||
|
|
||||||
services.AddMvc
|
services.AddMvc
|
||||||
(
|
(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue