2017-07-12 09:44:50 +02:00
|
|
|
{% if wizard.steps.current == 'token' %}
|
|
|
|
{% if device.method == 'call' %}
|
|
|
|
<p>We are calling your phone right now, please enter the
|
|
|
|
digits you hear.</p>
|
|
|
|
{% elif device.method == 'sms' %}
|
|
|
|
<p>We sent you a text message, please enter the token in the text message.</p>
|
|
|
|
{% else %}
|
|
|
|
<p>Please enter the 6-digit number from your token generator.</p>
|
|
|
|
{% endif %}
|
|
|
|
{% elif wizard.steps.current == 'backup' %}
|
|
|
|
<p>
|
|
|
|
Use this form for entering backup tokens for logging in.
|
|
|
|
These tokens have been generated for you to print and keep safe. Please
|
2020-08-11 02:20:10 +02:00
|
|
|
enter one of these backup tokens to log in to your account.
|
2017-07-12 09:44:50 +02:00
|
|
|
</p>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% for field in wizard.form %}
|
|
|
|
<div class="input-box no-validation">
|
|
|
|
{{ field }}
|
|
|
|
<label for="{{ field.id_for_label }}">{{ field.label }}</label>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
{% if other_devices %}
|
|
|
|
<p>{{ _("Or, alternatively, use one of your backup phones:") }}</p>
|
|
|
|
<p>
|
|
|
|
{% for other in other_devices %}
|
|
|
|
<button name="challenge_device" value="{{ other.persistent_id }}"
|
|
|
|
class="btn btn-default btn-block" type="submit">
|
|
|
|
{{ other|device_action }}
|
|
|
|
</button>
|
|
|
|
{% endfor %}
|
|
|
|
</p>
|
|
|
|
{% endif %}
|
|
|
|
{% if backup_tokens %}
|
|
|
|
<p>{{ _("As a last resort, you can use a backup token:") }}</p>
|
|
|
|
<p>
|
|
|
|
<button name="wizard_goto_step" type="submit" value="backup"
|
|
|
|
class="btn btn-default btn-block">{{ _("Use backup token") }}</button>
|
|
|
|
</p>
|
|
|
|
{% endif %}
|