84 lines
3.5 KiB
Plaintext
84 lines
3.5 KiB
Plaintext
@page
|
|
@model LoginModel
|
|
|
|
@{
|
|
ViewData["Title"] = "Log in";
|
|
}
|
|
|
|
<div class="jumbotron text-center">
|
|
<img alt="Props logo" src="~/images/logo-simplified.svg" class="img-fluid" style="max-height: 150px;"
|
|
asp-append-version="true" />
|
|
<h1 class="mt-3 mb-4 display-1">@ViewData["Title"]</h1>
|
|
<p>Welcome back!</p>
|
|
</div>
|
|
<div class="jumbotron sub flex-grow-1">
|
|
<div class="py-4 row justify-content-md-center">
|
|
<div class="col-md-4">
|
|
<form id="account" method="post">
|
|
<h4>Use a local account to log in.</h4>
|
|
<hr />
|
|
<div asp-validation-summary="All" class="text-danger"></div>
|
|
<div class="mb-3">
|
|
<label asp-for="Input.Email" class="form-label"></label>
|
|
<input asp-for="Input.Email" class="form-control" />
|
|
<span asp-validation-for="Input.Email" class="text-danger"></span>
|
|
</div>
|
|
<div class="mb-3">
|
|
<label asp-for="Input.Password" class="form-label"></label>
|
|
<input asp-for="Input.Password" class="form-control" />
|
|
<span asp-validation-for="Input.Password" class="text-danger"></span>
|
|
</div>
|
|
<div class="mb-3">
|
|
<div class="form-check">
|
|
<input asp-for="Input.RememberMe" class="form-check-input" />
|
|
<label asp-for="Input.RememberMe" class="form-check-label">
|
|
@Html.DisplayNameFor(m => m.Input.RememberMe)
|
|
</label>
|
|
</div>
|
|
</div>
|
|
<div class="mb-3">
|
|
<button type="submit" class="btn btn-primary">Log in</button>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-lg">
|
|
<a class="link-secondary" id="forgot-password" asp-page="./ForgotPassword">Forgot your
|
|
password?</a>
|
|
</div>
|
|
<div class="col-lg">
|
|
<a class="link-secondary" asp-page="./Register" asp-route-returnUrl="@Model.ReturnUrl">Register
|
|
as a new user</a>
|
|
</div>
|
|
<div class="col-lg">
|
|
<a class="link-secondary" id="resend-confirmation" asp-page="./ResendEmailConfirmation">Resend
|
|
email confirmation</a>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
@if ((Model.ExternalLogins?.Count ?? 0) != 0)
|
|
{
|
|
<div class="col-md-6 md-offset-2">
|
|
<h4>Use another service to log in.</h4>
|
|
<hr />
|
|
<form id="external-account" asp-page="./ExternalLogin" asp-route-returnUrl="@Model.ReturnUrl" method="post"
|
|
class="form-horizontal">
|
|
<div>
|
|
<p>
|
|
@foreach (var provider in Model.ExternalLogins)
|
|
{
|
|
<button type="submit" class="btn btn-primary" name="provider" value="@provider.Name"
|
|
title="Log in using your @provider.DisplayName account">@provider.DisplayName</button>
|
|
}
|
|
</p>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
}
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@section Scripts {
|
|
<partial name="_ValidationScriptsPartial" />
|
|
}
|