@model DisableTwoFactorViewModel
@{
    ViewData["Title"] = "Disable Two Factor";
}

<div class="page-heading compact">
    <div>
        <p class="eyebrow">Account</p>
        <h1>Disable Two Factor Authentication</h1>
        <p class="lead-text">Confirm your current password to disable two-factor authentication.</p>
    </div>
</div>

<section class="edit-panel">
    <form asp-action="DisableTwoFactor" method="post" class="asset-create-form">
        <div asp-validation-summary="ModelOnly" class="alert alert-warning"></div>
        <div class="row g-3">
            <div class="col-md-6">
                <label class="form-label" asp-for="CurrentPassword">Current password</label>
                <input class="form-control" asp-for="CurrentPassword" autocomplete="current-password" />
                <span class="text-danger" asp-validation-for="CurrentPassword"></span>
            </div>
        </div>
        <div class="button-row mt-3">
            <button class="btn btn-outline-danger" type="submit">Disable Two Factor</button>
            <a class="btn btn-outline-secondary" asp-action="Index">Cancel</a>
        </div>
    </form>
</section>

@section Scripts {
    <partial name="_ValidationScriptsPartial" />
}
