|
58 | 58 | </div> |
59 | 59 |
|
60 | 60 | <p class="mfa-api-blurb"> |
61 | | - [% INCLUDE api_key_pref_blurb %] |
| 61 | + [% IF user.settings.api_key_only.value == 'on' %] |
| 62 | + Enabling two-factor authentication has also required systems that |
| 63 | + interface with [% terms.Bugzilla %]'s API to use <a href="userprefs.cgi?tab=apikey">API keys</a> |
| 64 | + for authentication.<br> |
| 65 | + <br> |
| 66 | + While not recommended, this limitation can be lifted by changing the |
| 67 | + <a href="userprefs.cgi?tab=settings#api_key_only">Require API key authentication for API requests</a> |
| 68 | + preference. |
| 69 | + [% ELSE %] |
| 70 | + Systems that interface with [% terms.Bugzilla %]'s API are not required to use API keys.<br> |
| 71 | + Change the |
| 72 | + <a href="userprefs.cgi?tab=settings#api_key_only">Require API key authentication for API requests</a> |
| 73 | + preference to enforce API key usage. |
| 74 | + [% END %] |
62 | 75 | </p> |
63 | 76 |
|
64 | 77 | [% ELSE %] |
|
142 | 155 | </p> |
143 | 156 |
|
144 | 157 | <p class="mfa-api-blurb" style="display:none"> |
145 | | - [% INCLUDE api_key_pref_blurb %] |
| 158 | + Enabling two-factor authentication will also require systems that |
| 159 | + interface with [% terms.Bugzilla %]'s API to use <a href="userprefs.cgi?tab=apikey">API keys</a> |
| 160 | + for authentication. While not recommended, this limitation can be lifted by changing the |
| 161 | + <a href="userprefs.cgi?tab=settings#api_key_only">Require API key authentication for API requests</a> |
| 162 | + preference after 2FA is enabled. |
146 | 163 | </p> |
147 | 164 | </div> |
148 | 165 |
|
149 | 166 | </div> |
150 | | - |
151 | | -[% BLOCK api_key_pref_blurb %] |
152 | | - Enabling two-factor authentication will also require systems that |
153 | | - interface with [% terms.Bugzilla %]'s API to use <a href="userprefs.cgi?tab=apikey">API keys</a> |
154 | | - for authentication.<br> |
155 | | - <br> |
156 | | - While not recommended, this limitation can be lifted by changing the |
157 | | - <a href="userprefs.cgi?tab=settings#api_key_only">Require API key authentication for API requests</a> |
158 | | - preference after 2FA is enabled. |
159 | | -[% END %] |
|
0 commit comments