Django 5: LogoutView must be called via POST now
Some checks failed
Run tests / Execute tox to run the test suite (push) Failing after 1m26s

This commit is contained in:
2025-04-11 09:37:12 +02:00
parent 86dadac421
commit e5c1bbed4b
9 changed files with 39 additions and 13 deletions

View File

@@ -8,7 +8,13 @@
</button>
<ul class="dropdown-menu dropdown-menu-right" aria-labelledby="user_dropdown_button">
<li><a href="{% url 'dav_auth:set_password' %}">{% trans 'Passwort ändern' %}</a></li>
<li><a href="{% url 'dav_auth:logout' %}">{% trans 'Logout' %}</a></li>
<li>
<form method="post" action="{% url 'dav_auth:logout' %}" class="navbar-form">
{% csrf_token %}
<button id="id_logout_button" type="submit" class="btn btn-sm btn-danger"
style="width: 100%;">{% trans "Logout" %}</button>
</form>
</li>
</ul>
</div>
{% else %}