show warning on authorize page for non-approved app

This commit is contained in:
Son NK 2021-04-01 10:50:37 +02:00
parent bbfb69d774
commit 7d4e1048af
1 changed files with 7 additions and 0 deletions

View File

@ -32,7 +32,14 @@
{% endblock %}
{% block default_content %}
<form class="card" method="post" style="max-width: 40rem; margin: auto">
{% if not client.approved %}
<div class="alert alert-warning" style="border-bottom: 3px solid;">
{{ client.name }} is in Test Mode.
</div>
{% endif %}
<div class="card-body p-6">
<!-- User has already authorized this client -->
{% if client_user %}