Skip to content

Commit

Permalink
Changed example logout link from get link to post button
Browse files Browse the repository at this point in the history
  • Loading branch information
k-brahma authored Jan 8, 2024
1 parent 9159d1c commit e9dba63
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion example/templates/_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,12 @@
<li class="nav-item {% block nav_sessions %}{% endblock %}">
<a class="nav-link" href="{% url 'user_sessions:session_list' %}">{% trans "Sessions" %}</a></li>
<li class="nav-item">
<a class="nav-link" href="{% url 'logout' %}">{% trans "Logout" %}</a>
<form action="{% url 'logout' %}" method="post" class="d-inline">
{% csrf_token %}
<button type="submit" class="nav-link btn btn-link pt-2 m-0 text-decoration-none">
{% trans "Logout" %}
</button>
</form>
</li>
{% else %}
<li class="nav-item">
Expand Down

0 comments on commit e9dba63

Please sign in to comment.