Skip to content

Commit 6c89b42

Browse files
committed
Use POST method for logout
1 parent 5f7b5aa commit 6c89b42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/templates/user_menu.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
{% endif %}
7777
<li><a class="dropdown-item" href="{% url 'accounts:tasks' %}">Tasks</a></li>
7878
<li role="separator" class="dropdown-divider"></li>
79-
<li><form id="logout-form" action="{% url 'logout' %}">{% csrf_token %}<button type="submit" class="dropdown-item">Sign Out</button></form></li>
79+
<li><form id="logout-form" action="{% url 'logout' %}" method="POST">{% csrf_token %}<button type="submit" class="dropdown-item">Sign Out</button></form></li>
8080
</ul>
8181
</li>
8282
{% endif %}

0 commit comments

Comments
 (0)