mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 10:40:29 +01:00
48 lines
1.6 KiB
Plaintext
48 lines
1.6 KiB
Plaintext
@model SecondaryLoginViewModel
|
|
@{
|
|
ViewData["Title"] = "Two-factor/U2F authentication";
|
|
}
|
|
|
|
<section>
|
|
<div class="container">
|
|
@if (Model.LoginWith2FaViewModel != null && Model.LoginWithU2FViewModel != null)
|
|
{
|
|
<div class="row">
|
|
<div class="col-lg-12 section-heading">
|
|
<h2>@ViewData["Title"]</h2>
|
|
<hr class="primary">
|
|
|
|
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
|
|
</div>
|
|
</div>
|
|
}else if (Model.LoginWith2FaViewModel == null && Model.LoginWithU2FViewModel == null)
|
|
{
|
|
<div class="row">
|
|
<div class="col-lg-12 section-heading">
|
|
<h2 class="bg-danger">Both 2FA and U2F Authentication Methods are not available. Please go to the https endpoint</h2>
|
|
<hr class="danger">
|
|
</div>
|
|
</div>
|
|
}
|
|
|
|
|
|
<div class="row justify-content-center">
|
|
@if (Model.LoginWith2FaViewModel != null)
|
|
{
|
|
<div class="col-sm-12 col-md-6">
|
|
<partial name="Loginwith2fa" model="@Model.LoginWith2FaViewModel"/>
|
|
</div>
|
|
}
|
|
@if (Model.LoginWithU2FViewModel != null)
|
|
{
|
|
<div class="col-sm-12 col-md-6">
|
|
<partial name="LoginWithU2F" model="@Model.LoginWithU2FViewModel"/>
|
|
</div>
|
|
}
|
|
</div>
|
|
</div>
|
|
</section>
|
|
@section Scripts {
|
|
@await Html.PartialAsync("_ValidationScriptsPartial")
|
|
}
|