fix: repair logout link (requires POST since 4.1)
This commit is contained in:
parent
2d01023a4b
commit
5ebe5c1310
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue