mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 02:28:31 +01:00
3c76dfb584
btn-default has been removed in Bootstrap4: https://github.com/twbs/bootstrap/issues/25029
54 lines
2.1 KiB
Plaintext
54 lines
2.1 KiB
Plaintext
@model LoginWith2faViewModel
|
|
@{
|
|
ViewData["Title"] = "Two-factor authentication";
|
|
}
|
|
|
|
<section>
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-lg-12 text-center">
|
|
<h2 class="section-heading">@ViewData["Title"]</h2>
|
|
<hr class="primary">
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-4"></div>
|
|
<div class="col-md-4">
|
|
<form method="post" asp-route-returnUrl="@ViewData["ReturnUrl"]">
|
|
<input asp-for="RememberMe" type="hidden" />
|
|
<div asp-validation-summary="All" class="text-danger"></div>
|
|
<div class="form-group">
|
|
<label asp-for="TwoFactorCode"></label>
|
|
<input asp-for="TwoFactorCode" class="form-control" autocomplete="off" />
|
|
<span asp-validation-for="TwoFactorCode" class="text-danger"></span>
|
|
</div>
|
|
<div class="form-group">
|
|
<div class="checkbox">
|
|
<label asp-for="RememberMachine">
|
|
<input asp-for="RememberMachine" />
|
|
@Html.DisplayNameFor(m => m.RememberMachine)
|
|
</label>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<button type="submit" class="btn btn-primary">Log in</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<div class="col-md-4"></div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-4"></div>
|
|
<div class="col-md-4">
|
|
<p>
|
|
Don't have access to your authenticator device? You can
|
|
<a asp-action="LoginWithRecoveryCode" asp-route-returnUrl="@ViewData["ReturnUrl"]">log in with a recovery code</a>.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
@section Scripts {
|
|
@await Html.PartialAsync("_ValidationScriptsPartial")
|
|
}
|