{% extends "base.html" %} {% load i18n %} {% load static_url %} {% block html_extra %}data-qa-id="two_factor_verify"{% endblock %} {% block extra_css %} {% if rpconfig and rpconfig.logo_url %} {% endif %} {% endblock %} {% block text_title %}

{% trans "One account to log in to everything on Ubuntu" %}

{% endblock %} {% block bodyclass %}{% endblock %} {% block menu %}{% endblock %} {% block content %}
{% if form %}

{% if token %}{% url 'cancel' token as cancel_url %} {% else %}{% url 'account-index' as cancel_url %}{% endif %} {% if rpconfig and rpconfig.displayname %} {{ rpconfig.displayname }} {% else %} Ubuntu One {% endif %} {% trans "2-factor authentication" %}

{% csrf_token %}

{{ form.oath_token }} {% if form.oath_token.errors %} {{ form.oath_token.errors|join:"" }} {% endif %} {% if form.non_field_errors %} {{ form.non_field_errors|join:"" }} {% endif %}

{% if form.non_field_errors and form.sync_2fa_available %}

{% trans "Device out of sync? Click here to re-synchronize" %}

{% endif %}
{% if next %}{% endif %}
{% else %}
{% url 'device-addition' as device_add_url %}

{% blocktrans %}Please add a new 2-factor authentication device.{% endblocktrans %}

{% endif %}
{% include "registration/two_factor_information.html" %}
{% endblock %} {% block extra_js %} {% endblock %}