{% 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 %}Access Token{% endtrans %}

{% 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 %}


{# Panel to create tokens. #} {% call panel(title=_("Create New Access Token"), description=_("You can generate a access token for each application you use that needs access to API.")) %} {% include 'message.html' %}
{{ form }}
{% endcall %} {# Panel to manage tokens. #} {% call panel(title=_("Active access tokens"), description=_("Manage your existing access token.")) %} {% endcall %} {{ modal_confirm( id='delete-token-modal', title=_('Delete access token'), message=_("Are you sure you want to revoke this access token? Any application that uses this access token to authenticate will stop working."), fields=['revoke', 'name'], submit=_('Revoke')) }} {% endblock %}