mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-10 17:26:05 +01:00
* UI: Move section navigation to sidebar * Scroll active nav link into view * Move CTAs to top right * Server Settings: Make Policies first page * Responsive table fixes * Spacing fixes * Add breadcrumb samples * store settings fixes * payment request fixes * updates pull payment title * adds invoice detail fix * updates server settings breadcrumbs + copy fix * Don't open Server Settings on Plugins page * Add breadcrumbs to pull payment views * adds breadcrumbs to account * server and store breadcrumb fixes * fixes access tokens * Fix payment processor breadcrumbs * fixes webhook 404 * Final touches * Fix test * Add breadcrumb for email rules page * Design system updates --------- Co-authored-by: dstrukt <gfxdsign@gmail.com>
49 lines
2 KiB
Text
49 lines
2 KiB
Text
@model Fido2NetLib.CredentialCreateOptions
|
|
@{
|
|
ViewData.SetActivePage(ManageNavPages.TwoFactorAuthentication, "Register your security device");
|
|
}
|
|
|
|
<div class="sticky-header">
|
|
<nav aria-label="breadcrumb">
|
|
<ol class="breadcrumb">
|
|
<li class="breadcrumb-item">
|
|
<a asp-controller="UIManage" asp-action="TwoFactorAuthentication">Two Factor Authentication</a>
|
|
</li>
|
|
<li class="breadcrumb-item active" aria-current="page">Register Device</li>
|
|
</ol>
|
|
<h2>@ViewData["Title"]</h2>
|
|
</nav>
|
|
</div>
|
|
<partial name="_StatusMessage" />
|
|
|
|
<p>Insert your security device and proceed.</p>
|
|
|
|
<form asp-action="CreateResponse" id="registerForm">
|
|
<input type="hidden" name="data" id="data"/>
|
|
<input type="hidden" name="name" id="name" value="@(ViewData.ContainsKey("CredentialName") ? ViewData["CredentialName"] : string.Empty)"/>
|
|
</form>
|
|
<div class="row">
|
|
<div class="col-xl-8">
|
|
<div id="info-message" class="alert alert-info mb-3 d-none">
|
|
<div class="d-flex align-items-center">
|
|
<div class="spinner-border spinner-border-sm me-2 fido-running" role="status">
|
|
<span class="visually-hidden">Loading...</span>
|
|
</div>
|
|
<span>If your security device has a button, tap on it.</span>
|
|
</div>
|
|
</div>
|
|
<button id="btn-start" class="btn btn-primary d-none" type="button">Start</button>
|
|
<p id="error-message" class="d-none alert alert-danger"></p>
|
|
<a id="btn-retry" class="btn btn-secondary d-none">Retry</a>
|
|
</div>
|
|
</div>
|
|
|
|
@section PageFootContent {
|
|
<script>
|
|
document.getElementById('btn-retry').addEventListener('click', function () { window.location.reload() });
|
|
// send to server for registering
|
|
window.makeCredentialOptions = @Json.Serialize(Model);
|
|
</script>
|
|
<script src="~/js/webauthn/helpers.js"></script>
|
|
<script src="~/js/webauthn/register.js"></script>
|
|
}
|