You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
989 B
26 lines
989 B
@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> |