mirror of
https://github.com/jlengrand/bugsink.git
synced 2026-03-10 08:01:17 +00:00
Log out using POST
Log out via GET was deprecated in Django 4.1 https://docs.djangoproject.com/en/4.1/releases/4.1/#log-out-via-get
This commit is contained in:
@@ -49,7 +49,7 @@
|
||||
<a href="/accounts/login/"><div class="p-4 hover:bg-slate-400">Login</div></a>
|
||||
{% else %}
|
||||
<a href="/accounts/TODO/"><div class="p-4 hover:bg-slate-400">Profile</div></a>
|
||||
<a href="/accounts/logout/"><div class="p-4 hover:bg-slate-400">Log out</div></a>
|
||||
<div class="p-4 hover:bg-slate-400"><form id="logout-form" method="post" action="{% url 'logout' %}">{% csrf_token %}<button type="submit">Log out</button></form></div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user