<form
        th:fragment="form"
        class="halo-form"
        th:action="@{/challenges/two-factor/totp}"
        name="two-factor-form"
        id="two-factor-form"
        method="post"
>
    <div class="alert alert-error" role="alert" th:if="${param.error.size() > 0}">
        <strong th:text="#{form.messages.invalidError}"></strong>
    </div>
    <div class="form-item">
        <label for="code" th:text="#{form.code.label}"></label>
        <div class="form-input">
            <input
              