Show the last 5 characters of the token secrets on the user settings page to make identification of a token easier

This commit is contained in:
Jan Böhmer 2023-10-02 00:45:21 +02:00
parent b796ae36db
commit 42356cc2a3
5 changed files with 1360 additions and 1344 deletions

View file

@ -44,7 +44,8 @@
{% for api_token in user.apiTokens %}
{# @var api_token \App\Entity\UserSystem\ApiToken #}
<tr>
<td>{{ api_token.name }}</td>
<td>{{ api_token.name }}<br>
<small class="text-muted">{% trans%}api_token.ends_with{% endtrans%} ...<i>{{ api_token.lastTokenChars }}</i></small></td>
<td>{{ api_token.level.translationKey|trans }}</td>
<td>
{{ _self.format_date(api_token.validUntil) }}