{% extends "user-settings.html" %} {% import '_form_macros.html' as macros %} {% block settings_content %} {% if otp_uri %} {% endif%}
{{ _("OTP Tokens") }}
{{_("Add OTP Token")}}
{% for token in tokens %}
{{token.description if token.description else _('(no name)')}}
{{token.uniqueid}}
{% if not token.disabled %}
{% else %}
{% endif %}
{% else %}
{{ _("You have no OTP tokens") }}
{{ _("Add an OTP token to enable two-factor authentication on your account.") }}
{% endfor %}
{{ otp_notice() if otp_notice is defined and tokens }} {% endblock %} {% block scripts %} {{ super() }} {% if otp_uri %} {% endif %} {# Show the modals if there are form errors #} {% if addotpform.errors %} {% endif %} {% endblock %}