mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 10:40:29 +01:00
48 lines
1.9 KiB
Plaintext
48 lines
1.9 KiB
Plaintext
@model LoginWith2faViewModel
|
|
|
|
<section class="pt-5">
|
|
<div>
|
|
<div class="row">
|
|
<div class="col-lg-12 section-heading">
|
|
<h2>Two-factor authentication</h2>
|
|
<hr class="primary">
|
|
</div>
|
|
</div>
|
|
<div class="row mb-3">
|
|
<form class="col-12" method="post" asp-route-returnUrl="@ViewData["ReturnUrl"]" asp-action="LoginWith2fa">
|
|
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
|
|
<input asp-for="RememberMe" type="hidden"/>
|
|
<div class="form-group">
|
|
<label asp-for="TwoFactorCode"></label>
|
|
<input asp-for="TwoFactorCode" class="form-control" autocomplete="off" autofocus style="width:13em" />
|
|
<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="row">
|
|
<div class="col-12">
|
|
<p class="text-secondary">
|
|
Don't have access to your authenticator device?
|
|
<br>
|
|
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")
|
|
}
|