Skip to content

Commit

Permalink
fix: correction de la déconnexion (Django 5)
Browse files Browse the repository at this point in the history
  • Loading branch information
ikarius committed Jan 10, 2025
1 parent b24c3de commit 2c8afb6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion impact/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,13 @@
<div class="fr-collapse fr-menu" id="menu-header">
<ul class="fr-menu__list">
<li><a class="fr-nav__link" href="{% url 'users:account' %}" target="_self"><span class="fr-icon-account-circle-fill fr-mr-1w" aria-hidden="true"></span> Mon compte</a></li>
<li><a class="fr-nav__link" href="{% url 'users:logout' %}" target="_self"><span class="fr-icon-lock-unlock-fill fr-mr-1w" aria-hidden="true"></span> Se déconnecter</a></li>
<li>
<form>
{% csrf_token %}
<a class="fr-nav__link" href="#" hx-post="{% url 'users:logout' %}" hx-target="body">
<span class="fr-icon-lock-unlock-fill fr-mr-1w" aria-hidden="true"></span> Se déconnecter</a>
</form>
</li>
</ul>
</div>
</li>
Expand Down

0 comments on commit 2c8afb6

Please sign in to comment.