Added very basic system to add API tokens to an user

This commit is contained in:
Jan Böhmer 2023-08-15 23:36:56 +02:00
parent 3486957447
commit 3bc6e61869
8 changed files with 395 additions and 2 deletions

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