{% extends "base.html" %} {% block title %}{{ _('Select a Two-Factor Authentication Method') }} — {{ service_name }}{% endblock %} {% block content %}

{{ _('Select a Two-Factor Authentication Method') }}

{% if session['confirm_data']['reason'] == 'deactivate_two_factor_authentication_method' %} {% if method_to_deactivate.data.get('description') %} {% set method_description = method_to_deactivate.data['description'] %} {% elif method_to_deactivate.data.get('type') == 'totp' %} {% set method_description = _('TOTP-based Two-Factor Authentication') %} {% else %} {% set method_description = _('Unknown Two-Factor Authentication Method') %} {% endif %} {{ _('Please select a two-factor authentication method to confirm that you want to deactivate %(method_description)s.', method_description=method_description) }} {% else %} {{ _('Please select a two-factor authentication method to complete the sign in process.') }} {% endif %}

{% for method in methods %} {% if method.data.get('type') == 'totp' %}
{% if method.data.get('description') %} {{ method.data.description }} {% else %} {{ _('TOTP-based Two-Factor Authentication') }} {% endif %}
{% elif method.data.get('type') == 'fido2_passkey' %}
{% if method.data.get('description') %} "{{ method.data.description }}" {% else %} {{ _('FIDO2 Passkey') }} {% endif %}
{% endif %} {% endfor %}
{{ _('Cancel') }}
{% endblock %}