Skip to content

Commit

Permalink
Don't show double banners if 2FA can't be enabled yet (pypi#17371)
Browse files Browse the repository at this point in the history
  • Loading branch information
di authored Jan 8, 2025
1 parent 0848875 commit 47ee74b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion warehouse/templates/manage/manage_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ <h2 class="sub-title">{% trans %}Two factor authentication (2FA){% endtrans %}</
{% endif %}

{% set disabled = not user.has_burned_recovery_codes or not user.has_primary_verified_email %}
{% if not user.has_two_factor %}
{% if not disabled and not user.has_two_factor %}
<div class="callout-block">
<p>
{% trans %}
Expand Down

0 comments on commit 47ee74b

Please sign in to comment.