1
0
mirror of synced 2025-12-21 19:06:49 -05:00

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:
Jason Etcovitch
2020-09-29 16:01:04 -04:00
committed by GitHub
parent aa5a62d49d
commit caaee7a124
14816 changed files with 100317 additions and 100247 deletions

View File

@@ -1,6 +1,6 @@
---
title: Accessing GitHub using two-factor authentication
intro: 'With 2FA enabled, you''ll be asked to provide your 2FA authentication code, as well as your password, when you sign in to {{ site.data.variables.product.product_name }}.'
intro: 'With 2FA enabled, you''ll be asked to provide your 2FA authentication code, as well as your password, when you sign in to {% data variables.product.product_name %}.'
redirect_from:
- /articles/providing-your-2fa-security-code/
- /articles/providing-your-2fa-authentication-code/
@@ -11,17 +11,17 @@ versions:
enterprise-server: '*'
---
With two-factor authentication enabled, you'll need to provide an authentication code when accessing {{ site.data.variables.product.product_name }} through your browser. If you access {{ site.data.variables.product.product_name }} using other methods, such as the API or the command line, you'll need to use an alternative form of authentication. For more information, see "[About authentication to {{ site.data.variables.product.prodname_dotcom }}](/github/authenticating-to-github/about-authentication-to-github)."
With two-factor authentication enabled, you'll need to provide an authentication code when accessing {% data variables.product.product_name %} through your browser. If you access {% data variables.product.product_name %} using other methods, such as the API or the command line, you'll need to use an alternative form of authentication. For more information, see "[About authentication to {% data variables.product.prodname_dotcom %}](/github/authenticating-to-github/about-authentication-to-github)."
### Providing a 2FA code when signing in to the website
After you sign in to {{ site.data.variables.product.product_name }} using your password, you'll be prompted to provide an authentication code from {% if currentVersion == "free-pro-team@latest" %}a text message or{% endif %} your TOTP app.
After you sign in to {% data variables.product.product_name %} using your password, you'll be prompted to provide an authentication code from {% if currentVersion == "free-pro-team@latest" %}a text message or{% endif %} your TOTP app.
{{ site.data.variables.product.product_name }} will only ask you to provide your 2FA authentication code again if you've logged out, are using a new device, or your session expires.
{% data variables.product.product_name %} will only ask you to provide your 2FA authentication code again if you've logged out, are using a new device, or your session expires.
#### Generating a code through a TOTP application
If you chose to set up two-factor authentication using a TOTP application on your smartphone, you can generate an authentication code for {{ site.data.variables.product.product_name }} at any time. In most cases, just launching the application will generate a new code. You should refer to your application's documentation for specific instructions.
If you chose to set up two-factor authentication using a TOTP application on your smartphone, you can generate an authentication code for {% data variables.product.product_name %} at any time. In most cases, just launching the application will generate a new code. You should refer to your application's documentation for specific instructions.
If you delete the mobile application after configuring two-factor authentication, you'll need to provide your recovery code to get access to your account. For more information, see "[Recovering your account if you lose your two-factor authentication credentials](/articles/recovering-your-account-if-you-lose-your-2fa-credentials)"
@@ -29,25 +29,25 @@ If you delete the mobile application after configuring two-factor authentication
#### Receiving a text message
If you set up two-factor authentication via text messages, {{ site.data.variables.product.product_name }} will send you a text message with your authentication code.
If you set up two-factor authentication via text messages, {% data variables.product.product_name %} will send you a text message with your authentication code.
{% endif %}
### Using two-factor authentication with the command line
After you've enabled 2FA, you must use a personal access token or SSH key instead of your password when accessing {{ site.data.variables.product.product_name }} on the command line.
After you've enabled 2FA, you must use a personal access token or SSH key instead of your password when accessing {% data variables.product.product_name %} on the command line.
#### Authenticating on the command line using HTTPS
After you've enabled 2FA, you must create a personal access token to use as a password when authenticating to {{ site.data.variables.product.product_name }} on the command line using HTTPS URLs.
After you've enabled 2FA, you must create a personal access token to use as a password when authenticating to {% data variables.product.product_name %} on the command line using HTTPS URLs.
When prompted for a username and password on the command line, use your {{ site.data.variables.product.product_name }} username and personal access token. The command line prompt won't specify that you should enter your personal access token when it asks for your password.
When prompted for a username and password on the command line, use your {% data variables.product.product_name %} username and personal access token. The command line prompt won't specify that you should enter your personal access token when it asks for your password.
For more information, see "[Creating a personal access token](/github/authenticating-to-github/creating-a-personal-access-token)."
#### Authenticating on the command line using SSH
Enabling 2FA doesn't change how you authenticate to {{ site.data.variables.product.product_name }} on the command line using SSH URLs. For more information about setting up and using an SSH key, see "[Connecting to {{ site.data.variables.product.prodname_dotcom }} with SSH](/articles/connecting-to-github-with-ssh/)."
Enabling 2FA doesn't change how you authenticate to {% data variables.product.product_name %} on the command line using SSH URLs. For more information about setting up and using an SSH key, see "[Connecting to {% data variables.product.prodname_dotcom %} with SSH](/articles/connecting-to-github-with-ssh/)."
### Using two-factor authentication to access a repository using Subversion