Add password change

Closes #21
This commit is contained in:
Gabriel Augendre 2022-11-15 18:18:13 +01:00
parent 45101d0127
commit 3506f0becc

View file

@ -19,9 +19,16 @@
<a class="nav-link" href="{% url "admin:index" %}">Admin</a> <a class="nav-link" href="{% url "admin:index" %}">Admin</a>
</li> </li>
{% endif %} {% endif %}
{% if user.is_authenticated %} {% if user.is_authenticated %}
<li class="nav-item"> <li class="nav-item dropdown">
<a class="nav-link" href="{% url "logout" %}">Déconnexion</a> <a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">
Compte
</a>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="{% url "password_change" %}">Changer de mot de passe</a></li>
<li><a class="dropdown-item" href="{% url "logout" %}">Déconnexion</a></li>
</ul>
</li> </li>
{% endif %} {% endif %}
</ul> </ul>