mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-03 17:55:03 +02:00
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:
parent
b796ae36db
commit
42356cc2a3
5 changed files with 1360 additions and 1344 deletions
|
@ -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) }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue