mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-04 10:14:44 +02:00
Added very basic system to add API tokens to an user
This commit is contained in:
parent
3486957447
commit
3bc6e61869
8 changed files with 395 additions and 2 deletions
16
templates/users/api_token_create.html.twig
Normal file
16
templates/users/api_token_create.html.twig
Normal file
|
@ -0,0 +1,16 @@
|
|||
{% extends "main_card.html.twig" %}
|
||||
|
||||
{% block card_title %}Add API token{% endblock %}
|
||||
|
||||
{% block card_content %}
|
||||
{# Show API secret after submit #}
|
||||
|
||||
{% if secret is not null %}
|
||||
<div class="alert alert-success">
|
||||
Your API token is: <strong>{{ secret }}</strong><br>
|
||||
<span class="text-muted">Please save it. You wont be able to see it again!</span>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{{ form(form) }}
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue