{* SPDX-FileCopyrightText: © 2021 Olivier Meunier SPDX-License-Identifier: AGPL-3.0-only *} {{ extends "./base" }} {{ import "/_libs/forms" }} {{ block title() }}{{ gettext("Two-factor authentication") }}{{ end }} {{ block main() }}

{{ yield title() }}

{{ yield formErrors(form=.Form) }} {{ yield textField(field=.Form.Get("code"), label=gettext("Passcode"), class="max", inputClass="form-input w-full text-center text-lg font-bold", inputAttrs=attrList( "minlength", "6", "maxlength", "6", "autocapitalize", "off", "autocomplete", "one-time-code", ), ) }}
{{ end }}