Two Factor
{% if wizard.steps.current == 'welcome' %}
{% blocktrans trimmed %}
You are about to take your account security to the next level. Follow the steps in this
wizard to enable two-factor authentication.
{% endblocktrans %}
{% elif wizard.steps.current == 'method' %}
{% blocktrans trimmed %}
Please select which authentication method you would like to use.
{% endblocktrans %}
{% elif wizard.steps.current == 'generator' %}
{% blocktrans trimmed %}
To start using a token generator, please use your smartphone to scan the QR code below.
For example, use Google Authenticator.
{% endblocktrans %}
{% blocktrans trimmed %}
Alternatively you can use the TOTP Secret to setup TOTP in your authenticator or
password manager manually.
{% endblocktrans %}
{% blocktrans trimmed %}
Alternatively you can use the following secret to setup TOTP in your authenticator or
password manager manually.
{% endblocktrans %}
{% blocktrans %}
Your authenticator should supply a token. Please enter the token generated by the app.
{% endblocktrans %}
{% elif wizard.steps.current == 'validation' %}
{% if challenge_succeeded %}
{% blocktrans trimmed %}
Please enter the token sent to your email. If you accidentally close this page, you
will require that token to log in. If you have not received that token, please
contact your System Administrator team.
{% endblocktrans %}
{% endif %}
{% elif wizard.steps.current == 'yubikey' %}
{% blocktrans trimmed %}To identify and verify your YubiKey, please insert a
token in the field below. Your YubiKey will be linked to your
account.{% endblocktrans %}
{% endif %}
{# TOKEN GENERATOR PAGE #}
{% if wizard.steps.current == 'generator' %}

{% translate "TOTP Secret:" %} {{ secret_key }}
{% endif %}
{% if wiard.steps.current == 'validation' %}
{% if not challenge_succeeded %}
{% blocktrans trimmed %}
We've encountered an issue with the selected authentication method. Please
go back and verify that you entered your information correctly, try
again, or use a different authentication method instead. If the issue
persists, contact the site administrator.
{% endblocktrans %}
{% endif %}
{% endif %}
{% include "two_factor/_wizard_forms.html" %}
{# hidden submit button to enable [enter] key #}