mirror of
https://git.vectorsigma.ru/public/tubearchivist.git
synced 2026-08-04 23:39:18 +00:00
fix logout django 5 needing post request
This commit is contained in:
@@ -60,7 +60,10 @@
|
||||
<a href="{% url 'settings' %}">
|
||||
<img src="{% static 'img/icon-gear.svg' %}" alt="gear-icon" title="Settings">
|
||||
</a>
|
||||
<a href="{% url 'logout' %}">
|
||||
<form id="logout-form" action="{% url 'logout' %}" method="post" style="display:none;">
|
||||
{% csrf_token %}
|
||||
</form>
|
||||
<a href="#" onclick="document.getElementById('logout-form').submit();">
|
||||
<img class="alert-hover" src="{% static 'img/icon-exit.svg' %}" alt="exit-icon" title="Logout">
|
||||
</a>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user