Skip to content

Commit

Permalink
Add a comment for the 2FA setup in admin/base_site.html
Browse files Browse the repository at this point in the history
- It requires the custom admin app
  • Loading branch information
RadoRado committed May 27, 2024
1 parent 3ccdb34 commit f3ceedf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion styleguide_example/templates/admin/base_site.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@

{% block userlinks %}
{% if user.is_active and user.is_staff %}
<a href="{% url "admin:setup-2fa" %}"> Setup 2FA </a> /
{% comment %}
You'll need the custom admin app loaded, otherwise you'll get an error.
<a href="{% url "admin:setup-2fa" %}"> Setup 2FA </a> /
{% endcomment %}
{% endif %}

{{ block.super }}
Expand Down

0 comments on commit f3ceedf

Please sign in to comment.