Add 2FA in menu

This commit is contained in:
Gabriel Augendre 2021-12-26 23:30:23 +01:00
parent c033078859
commit 9f41a9c34a

View file

@ -6,6 +6,7 @@
<a href="{% url 'admin:articles_article_add' %}">Write</a>
<a href="{% url 'drafts-list' %}">View drafts <span class="pill">{{ drafts_count }}</span></a>
<a href="{% url 'admin:index' %}">Admin</a>
<a href="{% url 'two_factor:profile' %}">2FA</a>
<a href="{% url 'admin:logout' %}?next={{ request.get_full_path }}">Log out</a>
{% else %}
<a href="{% url 'admin:login' %}?next={{ request.get_full_path }}">Log in</a>