canaille-globuzma/canaille/templates/oidc/user/logout.html
Éloi Rivard 57af18d557 Use a unique identifier to indentify users in URLS
Previously we used the uid since we supposed this value was always
valid, but some users user the mail attribute as the User RDN in their
OpenLDAP installation, and do not have a uuid.
2023-06-29 15:55:39 +02:00

36 lines
1.5 KiB
HTML

{% extends theme('base.html') %}
{% import 'macro/form.html' as fui %}
{% block content %}
<div class="ui segment">
<div class="ui center aligned">
<h2 class="ui center aligned icon header">
<i class="sign out icon"></i>
<div class="content">{% trans %}Log out{% endtrans %}</div>
<div class="sub header">{% trans %}Do you want to log out?{% endtrans %}</div>
</h2>
<div class="ui message">
<p>
{{ _("You are currently logged in as %(username)s.", username=user.identifier) }}
{% if client %}
{{ _("The application %(client_name)s wants to disconnect your account.", client_name=client.client_name) }}
{% endif %}
</p>
</div>
</div>
<br>
<div class="ui center aligned container">
{% call fui.render_form(form) %}
<div class="ui stackable buttons">
<button name="answer" type="submit" class="ui button" value="stay" id="stay">
{% trans %}Stay logged{% endtrans %}
</button>
<button name="answer" type="submit" class="ui primary button" value="logout" id="logout">
{% trans %}Logout{% endtrans %}
</button>
</div>
{% endcall %}
</div>
</div>
{% endblock %}