<commit_before>﻿@model SecondaryLoginViewModel
@{
    ViewData["Title"] = "Two-factor/U2F authentication";
}

<section>
    <div class="container">
        @if (Model.LoginWith2FaViewModel != null && Model.LoginWithFido2ViewModel != null)
        {
            <div asp-validation-summary="ModelOnly" class="text-danger"></div>
        }
        else if (Model.LoginWith2FaViewModel == null && Model.LoginWithFido2ViewModel == null)
        {
            <div class="row">
                <div class="col-lg-12 section-heading">
                    <h2 class="bg-danger">Both 2FA and U2F/FIDO2 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.LoginWithFido2ViewModel != null)
            {
                <div class="col-sm-12 col-md-6">
                    <partial name="LoginWithFido2" model="@Model.LoginWithFido2ViewModel"/>
                </div>
            }
        </div>
    </div>
</section>

@section PageFootContent {
    <partial name="_ValidationScriptsPartial" />
}<commit_msg>2FA: Fix login partial name<commit_after>﻿@model SecondaryLoginViewModel
@{
    ViewData["Title"] = "Two-factor/U2F authentication";
}

<section>
    <div class="container">
        @if (Model.LoginWith2FaViewModel != null && Model.LoginWithFido2ViewModel != null)
        {
            <div asp-validation-summary="ModelOnly" class="text-danger"></div>
        }
        else if (Model.LoginWith2FaViewModel == null && Model.LoginWithFido2ViewModel == null)
        {
            <div class="row">
                <div class="col-lg-12 section-heading">
                    <h2 class="bg-danger">Both 2FA and U2F/FIDO2 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.LoginWithFido2ViewModel != null)
            {
                <div class="col-sm-12 col-md-6">
                    <partial name="LoginWithFido2" model="@Model.LoginWithFido2ViewModel"/>
                </div>
            }
        </div>
    </div>
</section>

@section PageFootContent {
    <partial name="_ValidationScriptsPartial" />
}
{'fraction_non_alphanumeric': 0.13016313779937522, 'fraction_numerical': 0.017007983339118363, 'mean_word_length': 1.8254901960784313, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 47, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2551684', 'n_tokens_mistral': 870, 'n_tokens_neox': 795, 'n_words': 158}