{% extends "base.html" %} {% block title %}{{ _('Enter TOTP Verification Code') }} — {{ service_name }}{% endblock %} {% block content %}

{{ _('Enter TOTP Verification Code') }}

{{ confirm_form.hidden_tag() }}

{% if reason == 'login' %} {{ _('Please enter the TOTP verification code generated using an app such as Google Authenticator to complete the sign in process.') }} {% elif reason == 'activate_two_factor_authentication_method' %} {{ _('Please enter the TOTP verification code generated using an app such as Google Authenticator to activate this two-factor authentication method.') }} {% elif 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 enter the TOTP verification code generated using an app such as Google Authenticator to confirm that you want to deactivate %(method_description)s.', method_description=method_description) }} {% endif %}

{% if description %}

{{ description }}

{% endif %}
{{ _('Cancel') }}
{% endblock %}