Update all files to use {% data %} (#15253)
* Add back changes from prior to purge * Manually fix some invalid Liquid * Updoot render-content * Improve test messages to show correct output * Run el scripto * Pass the remaining test
This commit is contained in:
@@ -18,7 +18,7 @@ We strongly recommend using a time-based one-time password (TOTP) application to
|
||||
{% warning %}
|
||||
|
||||
**Warning:**
|
||||
- If you're a member{% if currentVersion == "free-pro-team@latest" %}, billing manager,{% endif %} or outside collaborator to a private repository of an organization that requires two-factor authentication, you must leave the organization before you can disable 2FA on {{ site.data.variables.product.product_location }}.
|
||||
- If you're a member{% if currentVersion == "free-pro-team@latest" %}, billing manager,{% endif %} or outside collaborator to a private repository of an organization that requires two-factor authentication, you must leave the organization before you can disable 2FA on {% data variables.product.product_location %}.
|
||||
- If you disable 2FA, you will automatically lose access to the organization and any private forks you have of the organization's private repositories. To regain access to the organization and your forks, re-enable two-factor authentication and contact an organization owner.
|
||||
|
||||
{% endwarning %}
|
||||
@@ -37,16 +37,16 @@ A time-based one-time password (TOTP) application automatically generates an aut
|
||||
{% endtip %}
|
||||
|
||||
1. Download a TOTP app.
|
||||
{{ site.data.reusables.user_settings.access_settings }}
|
||||
{{ site.data.reusables.user_settings.security }}
|
||||
{{ site.data.reusables.two_fa.enable-two-factor-authentication }}
|
||||
{% data reusables.user_settings.access_settings %}
|
||||
{% data reusables.user_settings.security %}
|
||||
{% data reusables.two_fa.enable-two-factor-authentication %}
|
||||
5. On the Two-factor authentication page, click **Set up using an app**.
|
||||
{{ site.data.reusables.two_fa.save_your_recovery_codes_during_2fa_setup }}
|
||||
{% data reusables.two_fa.save_your_recovery_codes_during_2fa_setup %}
|
||||
8. On the Two-factor authentication page, do one of the following:
|
||||
- Scan the QR code with your mobile device's app. After scanning, the app displays a six-digit code that you can enter on {{ site.data.variables.product.product_name }}.
|
||||
- If you can't scan the QR code, click **enter this text code** to see a code you can copy and manually enter on {{ site.data.variables.product.product_name }} instead. 
|
||||
9. The TOTP mobile application saves your {{ site.data.variables.product.product_name }} account and generates a new authentication code every few seconds. On {{ site.data.variables.product.product_name }}, on the 2FA page, type the code and click **Enable**. 
|
||||
{{ site.data.reusables.two_fa.test_2fa_immediately }}
|
||||
- Scan the QR code with your mobile device's app. After scanning, the app displays a six-digit code that you can enter on {% data variables.product.product_name %}.
|
||||
- If you can't scan the QR code, click **enter this text code** to see a code you can copy and manually enter on {% data variables.product.product_name %} instead. 
|
||||
9. The TOTP mobile application saves your {% data variables.product.product_name %} account and generates a new authentication code every few seconds. On {% data variables.product.product_name %}, on the 2FA page, type the code and click **Enable**. 
|
||||
{% data reusables.two_fa.test_2fa_immediately %}
|
||||
|
||||
{% if currentVersion == "free-pro-team@latest" %}
|
||||
|
||||
@@ -58,24 +58,24 @@ Before using this method, be sure that you can receive text messages. Carrier ra
|
||||
|
||||
{% warning %}
|
||||
|
||||
**Warning:** We **strongly recommend** using a TOTP application for two-factor authentication instead of SMS. {{ site.data.variables.product.product_name }} doesn't support sending SMS messages to phones in every country. Before configuring authentication via text message, review the list of countries where {{ site.data.variables.product.product_name }} supports authentication via SMS. For more information, see "[Countries where SMS authentication is supported](/articles/countries-where-sms-authentication-is-supported)".
|
||||
**Warning:** We **strongly recommend** using a TOTP application for two-factor authentication instead of SMS. {% data variables.product.product_name %} doesn't support sending SMS messages to phones in every country. Before configuring authentication via text message, review the list of countries where {% data variables.product.product_name %} supports authentication via SMS. For more information, see "[Countries where SMS authentication is supported](/articles/countries-where-sms-authentication-is-supported)".
|
||||
|
||||
{% endwarning %}
|
||||
|
||||
{{ site.data.reusables.user_settings.access_settings }}
|
||||
{{ site.data.reusables.user_settings.security }}
|
||||
{{ site.data.reusables.two_fa.enable-two-factor-authentication }}
|
||||
{% data reusables.user_settings.access_settings %}
|
||||
{% data reusables.user_settings.security %}
|
||||
{% data reusables.two_fa.enable-two-factor-authentication %}
|
||||
4. On the Two-factor authentication page, click **Set up using SMS**.
|
||||
{{ site.data.reusables.two_fa.save_your_recovery_codes_during_2fa_setup }}
|
||||
{% data reusables.two_fa.save_your_recovery_codes_during_2fa_setup %}
|
||||
7. Select your country code and type your mobile phone number, including the area code. When your information is correct, click **Send authentication code**. 
|
||||
8. You'll receive a text message with a security code. Type the code on the Two-factor authentication page, and click **Enable**. 
|
||||
{{ site.data.reusables.two_fa.test_2fa_immediately }}
|
||||
{% data reusables.two_fa.test_2fa_immediately %}
|
||||
|
||||
{% endif %}
|
||||
|
||||
### Configuring two-factor authentication using a security key
|
||||
|
||||
{{ site.data.reusables.two_fa.after-2fa-add-security-key }}
|
||||
{% data reusables.two_fa.after-2fa-add-security-key %}
|
||||
|
||||
On most devices and browsers, you can use a physical security key over USB or NFC. Some browsers can use the fingerprint reader, facial recognition, or password/PIN on your device as a security key.
|
||||
|
||||
@@ -84,8 +84,8 @@ Authentication with a security key is *secondary* to authentication with a TOTP
|
||||
1. You must have already configured 2FA via a TOTP mobile app{% if currentVersion == "free-pro-team@latest" %} or via SMS{% endif %}.
|
||||
2. Ensure that you have a
|
||||
{% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.18" %}WebAuthn{% else %}FIDO U2F{% endif %} compatible security key inserted into your computer.
|
||||
{{ site.data.reusables.user_settings.access_settings }}
|
||||
{{ site.data.reusables.user_settings.security }}
|
||||
{% data reusables.user_settings.access_settings %}
|
||||
{% data reusables.user_settings.security %}
|
||||
5. Next to "Security keys", click **Add**. 
|
||||
6. Under "Security keys", click **Register new security key**.
|
||||
{% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.18" %}
|
||||
@@ -106,12 +106,12 @@ Authentication with a security key is *secondary* to authentication with a TOTP
|
||||

|
||||
{% endif %}
|
||||
9. Confirm that you've downloaded and can access your recovery codes. If you haven't already, or if you'd like to generate another set of codes, download your codes and save them in a safe place. If you lose access to your account, you can use your recovery codes to get back into your account. For more information, see "[Recovering your account if you lose your 2FA credentials](/articles/recovering-your-account-if-you-lose-your-2fa-credentials)." 
|
||||
{{ site.data.reusables.two_fa.test_2fa_immediately }}
|
||||
{% data reusables.two_fa.test_2fa_immediately %}
|
||||
|
||||
### Дополнительная литература
|
||||
|
||||
- "[About two-factor authentication](/articles/about-two-factor-authentication)"
|
||||
- "[Configuring two-factor authentication recovery methods](/articles/configuring-two-factor-authentication-recovery-methods)"
|
||||
- "[Accessing {{ site.data.variables.product.prodname_dotcom }} using two-factor authentication](/articles/accessing-github-using-two-factor-authentication)"
|
||||
- "[Accessing {% data variables.product.prodname_dotcom %} using two-factor authentication](/articles/accessing-github-using-two-factor-authentication)"
|
||||
- "[Recovering your account if you lose your 2FA credentials](/articles/recovering-your-account-if-you-lose-your-2fa-credentials)"
|
||||
- "[Creating a personal access token](/github/authenticating-to-github/creating-a-personal-access-token)"
|
||||
|
||||
Reference in New Issue
Block a user