]> git.parisson.com Git - teleforma.git/commitdiff
use form with POST request to logout
authorGuillaume Pellerin <guillaume.pellerin@parisson.com>
Tue, 23 Jun 2026 17:44:15 +0000 (19:44 +0200)
committerGuillaume Pellerin <guillaume.pellerin@parisson.com>
Tue, 23 Jun 2026 17:44:15 +0000 (19:44 +0200)
teleforma/templates/teleforma/base.html

index 13eef8623df09121b0a7a93aab93dbde07a74a38..1605eb8d0891fdea3b55cb8802276ac739a75521 100644 (file)
           {% else %}
           <li><a href="{% url 'teleforma-profile-detail' user.username %}" class="darkblue">{% trans "Profile" %}</a>
           </li>
-          <li><a href="{% url 'teleforma-logout' %}" class="black">{% trans "Sign out" %}</a></li>
+          <li><form action="{% url 'teleforma-logout' %}" method="post">
+              {% csrf_token %}
+              <button type="submit">{% trans "Sign out" %}</button>
+              </form>)
+          </li>
           {% endif %}
 
           {% endif %}