{* SPDX-FileCopyrightText: © 2025 Olivier Meunier SPDX-License-Identifier: AGPL-3.0-only *} {{ extends "./base" }} {{ import "/_libs/forms" }} {{ block title() }}{{ gettext("Setup Verification Code") }}{{ end }} {{ block mainContent() }}

{{ yield title() }}

{{- if isset(.Code) -}}

{{ gettext("Scan this QR code with your app") }}

{{ gettext("Scan the QR code below with a two-factor authentication app on your phone.") }}

{{ gettext("If you can't use the QR code, enter the code below instead.") }}

{{ .Code.Secret }}

{{- end -}}

{{ gettext("Enter the code from your application.") }}

{{ gettext("After scanning the QR code, the app will display a six-digit code that you need to enter below.") }}

{{ yield textField( field=.Form.Get("otp"), required=true, label=gettext("Code from your device"), inputClass="form-input", inputAttrs=attrList("autocomplete", "one-time-code"), ) }}

{{ end }}