fix: repair logout link (requires POST since 4.1)

This commit is contained in:
Jan Koppe 2024-02-25 15:01:00 +01:00
parent 2d01023a4b
commit 5ebe5c1310
Signed by: thunfisch
GPG Key ID: BE935B0735A2129B
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@
</a>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarAccountDropdown">
<a class="dropdown-item" href="{% url 'password_change' %}">{% trans "navbar_account_password_change" %}</a>
<a class="dropdown-item" href="{% url 'logout' %}?next={% url 'index' %}">{% trans "navbar_account_logout" %}</a>
<form method="post" action="{% url 'logout' %}?next={% url 'index' %}">{% csrf_token %}<button type="submit" class="dropdown-item">{% trans "navbar_account_logout" %}</button></form>
</li>
{% else %}
<li class="nav-item">