Browse Source

Logoff com proteção csrf

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

9
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 %}
<button type="submit">
{% translate 'Log out' %}
<i class="material-icons" aria-hidden="true">exit_to_app</i> <i class="material-icons" aria-hidden="true">exit_to_app</i>
</a> </button>
</form>
{% endif %} {% endif %}
{% endblock %} {% endblock %}

Loading…
Cancel
Save