{% extends "base.html" %} {% block content %}
{% with staff_nav_active="users" %} {% include "partials/staff_sidebar.html" %} {% endwith %}
{% with breadcrumbs=[ {"name": "Staff", "href": "/staff"}, {"name": "Users", "href": "/staff/users"}, {"name": user.name | display_name(user.username), "href": "/staff/users/" ~ user.uuid}, {"name": "Security"} ] %} {% include "partials/breadcrumbs.html" %} {% endwith %}

{{ user.name | display_name(user.username) }}

{% with staff_user_tabs_base="/staff/users/" ~ user.uuid, staff_user_tabs_active="security" %} {% include "partials/staff_user_tabs.html" %} {% endwith %} {% include "partials/flash.html" %}
Password
Reset this user's password.
Change password
{% if created_token %} {% endif %}
API tokens
Create token

API tokens let you authenticate API requests and Git smart-HTTP operations from scripts and tools. You can have up to 5 active tokens at a time. Learn more in the docs.

{% if page.results | length == 0 %}

No API tokens yet.

{% else %}
{% for token in page.results %} {% endfor %}
Name Token Created Expires Status
{{ token.name }} {% if token.token_display | length > 12 %} {{ token.token_display[:12] }} {% else %} {{ token.token_display }} {% endif %} {{ token.created_at | humantime }} {{ token.expires_at | humantime }} {% if token.is_active and not token.is_expired %} Active {% elif token.is_revoked %} Revoked {% elif token.is_expired %} Expired {% else %} Inactive {% endif %} {% if token.is_active %}
{% elif token.is_revoked %}
{% endif %}
Token values are only shown once when created and cannot be retrieved later.
{% endif %}
{% with modal_id="confirm-revoke-token", modal_title="Revoke token", modal_body='Revoke ?', modal_confirm_text="Revoke token", modal_desc="Revoking a token immediately prevents it from being used to authenticate API requests. This action cannot be undone." %} {% include "partials/confirm_modal.html" %} {% endwith %} {% with modal_id="confirm-delete-token", modal_title="Delete token", modal_body='Delete ?', modal_confirm_text="Delete token", modal_desc="This token is permanently deleted and cannot be restored." %} {% include "partials/confirm_modal.html" %} {% endwith %} {% endblock %} {% block scripts %} {% endblock %}