Commit 2d5a5991 authored by Auke Klazema's avatar Auke Klazema

TMSS-143: Add logout button to template

parent fb687c2f
......@@ -9,10 +9,11 @@
{% block userlinks %}
{% if request.user.is_authenticated %}
<p>Current user: {{ request.user.email }}</p>
<p>Current user: {{ request.user.email }}</p>
<form action="{% url 'oidc_logout' %}" method="post">
<input type="submit" value="logout">
</form>
{% else %}
<a href="{% url 'oidc_authentication_init' %}">Login</a>
{% endif %}
{% endblock %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment