Refactor code structure for improved readability and maintainability
This commit is contained in:
parent
b47641feaa
commit
4f488bae45
78 changed files with 3309 additions and 1570 deletions
20
dotnet/src/TwitchArchive.Web/Pages/Login.razor
Normal file
20
dotnet/src/TwitchArchive.Web/Pages/Login.razor
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
@page "/login"
|
||||
@attribute [AllowAnonymous]
|
||||
@using Microsoft.AspNetCore.Components
|
||||
|
||||
<h3>Login</h3>
|
||||
|
||||
@if (error)
|
||||
{
|
||||
<div class="alert">Invalid password</div>
|
||||
}
|
||||
|
||||
<form method="post" action="/auth/login">
|
||||
<input type="password" name="password" placeholder="Password" />
|
||||
<button type="submit">Login</button>
|
||||
</form>
|
||||
|
||||
@code {
|
||||
[Parameter]
|
||||
public bool error { get; set; }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue