ljg.sh/ljg/core/templates/index.html

14 lines
306 B
HTML

{% extends "base.html" %}
{% block body %}
{% if user.is_authenticated %}
{{ user.email }}
<form action="{% url 'oidc_logout' %}" method="post">
{% csrf_token %}
<button type="submit">Logout</button>
</form>
{% else %}
<a href="{% url 'oidc_authentication_init' %}">Login</a>
{% endif %}
{% endblock %}