Skip to content

Commit

Permalink
Allow TOTP to be disabled when WebAuthn is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
quantum5 committed Jun 5, 2021
1 parent 31a0de2 commit 36ea904
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/user/edit-profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@
{% if profile.is_totp_enabled %}
<div class="block-header grayed">{{ _('Two-factor Authentication is enabled') }}:</div>
<div class="block-buttons">
{% if require_staff_2fa and request.user.is_staff %}
{% if require_staff_2fa and request.user.is_staff and not profile.is_webauthn_enabled %}
<a id="disable-2fa-button" class="button inline-button">{{ _('Disable') }}</a>
{% else %}
<a href="{{ url('disable_2fa') }}"
Expand Down

0 comments on commit 36ea904

Please sign in to comment.