{% extends 'prefs.html' %} {% from 'include/panel.html' import panel %} {% from 'include/modal_dialog.html' import modal_dialog, button_confirm, modal_confirm %} {% set active_panelid='tokens' %} {% block panel %}
{% trans %}You can use access tokens to authenticate to this application. They are the only accepted password when you have Two-Factor Authentication (2FA) enabled.{% endtrans %}
{{ token.name }}
{% trans %}Created on{% endtrans %}
{% trans %}Last accessed{% endtrans %}
{% if token.access_time %}
{% else %}
{% trans %}Never{% endtrans %}
{% endif %}
{% trans %}Expired on{% endtrans %}
{% if token.expiration_time %}
{% else %}
{% trans %}Never{% endtrans %}
{% endif %}
{% trans %}Scopes{% endtrans %}
{% set scope_table = dict(form.scope.choices) %}
{%- for s in token.scope -%}
{%- if loop.index > 1 %},
{% endif -%}
{{ scope_table.get(s, s).split(' - ')[0] }}
{%- else -%}
{% trans %}Default access{% endtrans %}
{%- endfor -%}