{% extends "auth_layout.html" %} {% block title %}{% if purpose == "change" %}Choose a New Password{% else %}Two-Step Verification{% endif %}{% endblock %} {% block heading %}{% if purpose == "change" %}Choose a new password{% elif purpose == "enrol" %}Set up your second step{% else %}Check your sign-in{% endif %}{% endblock %} {% block content %} {% if factor_notice %}
{{ factor_notice }}
{% endif %} {% include "_passkey_challenge.html" %} {% if purpose == "change" %}

{{ reason_text }} Use at least {{ min_length }} characters. Changing it signs you out everywhere else.

{% set feedback_place = "challenge" %}{% set feedback_base = "/auth/challenge" %}{% include "_password_feedback.html" %}
{% elif purpose == "enrol" and not totp %} {# warden named no kind this screen can enrol: nothing to set up here. #} {% elif purpose == "enrol" %}

{% if not webauthn %}Every password sign-in now needs a second factor, and your account does not have one yet. {% endif %}Set up an authenticator app to continue: scan the code with the app, or enter the key by hand, then type the six-digit code it shows.

{% include "_totp_enrolment.html" %}
{% else %} {% if totp %}

Enter the code from your authenticator app to finish signing in.

{% endif %}
Use a recovery code instead
{% endif %} {% endblock %} {% block scripts %}{% if webauthn %}{% endif %}{% if purpose == "change" %}{% endif %}{% endblock %}