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
Some checks failed
Run tests / Execute tox to run the test suite (push) Failing after 1m26s
This commit is contained in:
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user