Browse Source

Logoff com proteção csrf

pull/174/head 3.0.84
Sesóstris Vieira 8 months ago
parent
commit
c8559cc164
  1. 11
      sigi/templates/admin/base_site.html

11
sigi/templates/admin/base_site.html

@ -45,10 +45,13 @@
</a> </a>
{% endif %} {% endif %}
{% if not user.is_anonymous %} {% if not user.is_anonymous %}
<a href="{% url 'logout' %}"> <form id="logout-form" method="post" action="{% url 'admin:logout' %}">
{% trans 'Log out' %} {% csrf_token %}
<i class="material-icons" aria-hidden="true">exit_to_app</i> <button type="submit">
</a> {% translate 'Log out' %}
<i class="material-icons" aria-hidden="true">exit_to_app</i>
</button>
</form>
{% endif %} {% endif %}
{% endblock %} {% endblock %}

Loading…
Cancel
Save