Skip to content

Commit f90ba69

Browse files
authored
Bug 1988243 - When a bot account is in the duo_excluded group it is still required to setup Duo only as 2FA and not TOTP
1 parent 66381b2 commit f90ba69

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

template/en/default/account/prefs/mfa.html.tmpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
</iframe>
5757

5858
[% ELSIF user.mfa %]
59-
[% IF user.mfa != 'Duo' && user.in_duo_required_group %]
59+
[% IF user.mfa != 'Duo' && user.in_duo_required_group && !user.in_duo_excluded_group %]
6060
<p class="mfa-warning-msg">
6161
You are in a group requiring Duo Security for two-factor authentication. You must
6262
first disabled your current two-factor authentication and then select Duo Security
@@ -77,9 +77,9 @@
7777
<input type="hidden" name="mfa_action" id="mfa-action" value="disable">
7878

7979
<div class="mfa-buttons">
80-
[% IF user.mfa == 'Duo' && user.in_duo_required_group %]
80+
[% IF user.mfa == 'Duo' && user.in_duo_required_group && !user.in_duo_excluded_group %]
8181
<p class="mfa-warning-msg">
82-
You are in a group requiring Duo Security for two-factor authentication and
82+
You are in a group requiring Duo Security for two-factor authentication and
8383
therefore it cannot be disabled. Talk to an admin on Slack (#bmo) if you need assistance.
8484
</p>
8585
[% ELSIF user.mfa != 'Duo' || (user.mfa == 'Duo' && !user.in_duo_required_group) %]

0 commit comments

Comments
 (0)