Skip to content

Commit 47ee74b

Browse files
authored
Don't show double banners if 2FA can't be enabled yet (#17371)
1 parent 0848875 commit 47ee74b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

warehouse/templates/manage/manage_base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ <h2 class="sub-title">{% trans %}Two factor authentication (2FA){% endtrans %}</
177177
{% endif %}
178178

179179
{% set disabled = not user.has_burned_recovery_codes or not user.has_primary_verified_email %}
180-
{% if not user.has_two_factor %}
180+
{% if not disabled and not user.has_two_factor %}
181181
<div class="callout-block">
182182
<p>
183183
{% trans %}

0 commit comments

Comments
 (0)