After Width: | Height: | Size: 2.5 MiB |
After Width: | Height: | Size: 1.6 MiB |
After Width: | Height: | Size: 1.6 MiB |
After Width: | Height: | Size: 1.6 MiB |
After Width: | Height: | Size: 1.7 MiB |
After Width: | Height: | Size: 1.6 MiB |
After Width: | Height: | Size: 13 KiB |
After Width: | Height: | Size: 1.7 MiB |
@ -0,0 +1,27 @@
|
|||||||
|
@page "/login"
|
||||||
|
@layout AuthLayout
|
||||||
|
|
||||||
|
<h1 class="h2 font-weight-normal login-title">
|
||||||
|
Login
|
||||||
|
</h1>
|
||||||
|
|
||||||
|
<EditForm class="form-signin" OnValidSubmit="OnSubmit" Model="loginRequest">
|
||||||
|
<DataAnnotationsValidator />
|
||||||
|
|
||||||
|
<label for="inputUsername" class="sr-only">User Name</label>
|
||||||
|
<InputText id="inputUsername" class="form-control" @bind-Value="loginRequest.UserName" autofocus placeholder="Username" />
|
||||||
|
<ValidationMessage For="@(() => loginRequest.UserName)" />
|
||||||
|
|
||||||
|
<label for="inputPassword" class="sr-only">Password</label>
|
||||||
|
<InputText type="password" id="inputPassword" class="form-control" placeholder="Password" @bind-Value="loginRequest.Password" />
|
||||||
|
<ValidationMessage For="@(() => loginRequest.Password)" />
|
||||||
|
|
||||||
|
<button class="btn btn-lg btn-primary btn-block" type="submit">Sign in</button>
|
||||||
|
|
||||||
|
<label class="text-danger">@error</label>
|
||||||
|
|
||||||
|
<NavLink href="register">
|
||||||
|
<h6 class="font-weight-normal text-center">Create account</h6>
|
||||||
|
</NavLink>
|
||||||
|
</EditForm>
|
||||||
|
|
@ -0,0 +1,29 @@
|
|||||||
|
@page "/register"
|
||||||
|
@layout AuthLayout
|
||||||
|
|
||||||
|
<h1 class="h2 font-weight-normal login-title">
|
||||||
|
Register
|
||||||
|
</h1>
|
||||||
|
|
||||||
|
<EditForm class="form-signin" OnValidSubmit="OnSubmit" Model="registerRequest">
|
||||||
|
<DataAnnotationsValidator />
|
||||||
|
|
||||||
|
<label for="inputUsername" class="sr-only">User Name</label>
|
||||||
|
<InputText id="inputUsername" class="form-control" placeholder="Username" autofocus @bind-Value="@registerRequest.UserName" />
|
||||||
|
<ValidationMessage For="@(() => registerRequest.UserName)" />
|
||||||
|
|
||||||
|
<label for="inputPassword" class="sr-only">Password</label>
|
||||||
|
<InputText type="password" id="inputPassword" class="form-control" placeholder="Password" @bind-Value="@registerRequest.Password" />
|
||||||
|
<ValidationMessage For="@(() => registerRequest.Password)" />
|
||||||
|
|
||||||
|
<label for="inputPasswordConfirm" class="sr-only">Password Confirmation</label>
|
||||||
|
<InputText type="password" id="inputPasswordConfirm" class="form-control" placeholder="Password Confirmation" @bind-Value="@registerRequest.PasswordConfirm" />
|
||||||
|
<ValidationMessage For="@(() => registerRequest.PasswordConfirm)" />
|
||||||
|
|
||||||
|
<button class="btn btn-lg btn-primary btn-block" type="submit">Create account</button>
|
||||||
|
|
||||||
|
<label class="text-danger">@error</label>
|
||||||
|
<NavLink href="login">
|
||||||
|
<h6 class="font-weight-normal text-center">Already have an account? Click here to login</h6>
|
||||||
|
</NavLink>
|
||||||
|
</EditForm>
|
@ -0,0 +1,6 @@
|
|||||||
|
@inherits LayoutComponentBase
|
||||||
|
<div class="main">
|
||||||
|
<div class="content px-4">
|
||||||
|
@Body
|
||||||
|
</div>
|
||||||
|
</div>
|