> ## Documentation Index
> Fetch the complete documentation index at: https://gcore.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Set up two-factor authentication

Two-factor authentication (2FA) provides an extra layer of security by requiring both a password and a single-use verification code at login, protecting accounts from unauthorized access.

## Configure two-factor authentication

1. In the Customer Portal, click the avatar in the top-right corner and select **Profile**.

2. Click **Enable 2FA**.

<Frame>
  <img src="https://mintcdn.com/gcore/toaWJ7MjKRy4MQ0J/images/docs/account-settings/my-profile/two-factor-authentication/enable-2fa-button.png?fit=max&auto=format&n=toaWJ7MjKRy4MQ0J&q=85&s=21ddf8656d8e2c0dc2e1507fa5e70c78" alt="Two-Factor authentication section with Enable 2FA button" width="649" height="200" data-path="images/docs/account-settings/my-profile/two-factor-authentication/enable-2fa-button.png" />
</Frame>

3. In the configuration dialog that opens, download an authenticator app on a mobile device. Recommended apps:

   * [Google Authenticator](https://support.google.com/accounts/answer/1066447?hl=en) (for [Android](https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2\&hl=ru) / [iOS](https://apps.apple.com/us/app/google-authenticator/id388497605))
   * [Microsoft Authenticator](https://support.microsoft.com/en-us/account-billing/download-microsoft-authenticator-351498fc-850a-45da-b7b6-27e523b8702a) (for [iOS](https://apps.apple.com/us/app/microsoft-authenticator/id983156458) / [Android](https://play.google.com/store/apps/details?id=com.azure.authenticator\&hl=en))
   * [Authy](https://authy.com/download) (for [Android](https://play.google.com/store/apps/details?id=com.authy.authy) / [iOS](https://apps.apple.com/us/app/authy/id494168017))

<Accordion title="Troubleshooting authenticator apps">
  If the authenticator app is not working, check the following.

  ### Check time synchronization

  2FA requires synchronized time between the authenticator app and the login device. If an invalid code error appears despite entering the correct code, the issue may be time synchronization. Verify that the date and time are correct and enable network time synchronization on the login device.

  ### Use a backup verification code

  Use one of the one-time backup codes that were generated during 2FA setup.

  ### Check device configuration

  If the authenticator app was recently moved to a new device, verify that it is configured correctly on the new device.
</Accordion>

4. Scan the QR code shown in the dialog using the authenticator app.

5. Enter the six-digit code generated by the app and click **Check**.

<Frame>
  <img src="https://mintcdn.com/gcore/toaWJ7MjKRy4MQ0J/images/docs/account-settings/my-profile/two-factor-authentication/2fa-qr-dialog.png?fit=max&auto=format&n=toaWJ7MjKRy4MQ0J&q=85&s=286e474afd19342e83ecb7264c8c519a" alt="Enable Two-Factor authentication dialog with QR code" width="480" height="572" data-path="images/docs/account-settings/my-profile/two-factor-authentication/2fa-qr-dialog.png" />
</Frame>

Two-factor authentication is now active on the account.

### Generate backup verification codes

Backup verification codes allow access to the account if the authenticator app becomes unavailable. To generate codes, click **Generate backup code** on the My profile page.

<Frame>
  <img src="https://mintcdn.com/gcore/toaWJ7MjKRy4MQ0J/images/docs/account-settings/my-profile/two-factor-authentication/2fa-security-section.png?fit=max&auto=format&n=toaWJ7MjKRy4MQ0J&q=85&s=e55b170522f1c6fe8a1dc2e6b0c11c64" alt="Two-Factor authentication section on My profile page" width="651" height="295" data-path="images/docs/account-settings/my-profile/two-factor-authentication/2fa-security-section.png" />
</Frame>

<Warning>
  **Warning**

  Each backup code can be used only once. When all codes have been used, generate a new set — clicking **Generate backup code** invalidates the previous codes.
</Warning>

Copy, print, or download the five codes and store them securely before closing the dialog.

<Frame>
  <img src="https://mintcdn.com/gcore/toaWJ7MjKRy4MQ0J/images/docs/account-settings/my-profile/two-factor-authentication/backup-codes-dialog.png?fit=max&auto=format&n=toaWJ7MjKRy4MQ0J&q=85&s=e39921f26c6ec99012df7a9ca9fd16c5" alt="Backup verification codes dialog" width="480" height="302" data-path="images/docs/account-settings/my-profile/two-factor-authentication/backup-codes-dialog.png" />
</Frame>

## Log in with two-factor authentication

1. Enter an email address and password on the [login page](https://auth.gcore.com/login/signin).

<Frame>
  <img src="https://mintcdn.com/gcore/toaWJ7MjKRy4MQ0J/images/docs/account-settings/my-profile/two-factor-authentication/login-page.png?fit=max&auto=format&n=toaWJ7MjKRy4MQ0J&q=85&s=c419aa78b50d1157dbcd0f182c04eac5" alt="Log in page" width="460" height="384" data-path="images/docs/account-settings/my-profile/two-factor-authentication/login-page.png" />
</Frame>

2. Click **Log in**.

3. Enter the verification code from the authenticator app, or use a [backup code](/account-settings/my-profile/two-factor-authentication#generate-backup-verification-codes).

<Frame>
  <img src="https://mintcdn.com/gcore/toaWJ7MjKRy4MQ0J/images/docs/account-settings/my-profile/two-factor-authentication/enter-code-auth.png?fit=max&auto=format&n=toaWJ7MjKRy4MQ0J&q=85&s=62e9b017170e553078e9ed59e0fb4083" alt="Enter authenticator passcode screen" width="540" height="412" data-path="images/docs/account-settings/my-profile/two-factor-authentication/enter-code-auth.png" />
</Frame>

4. Click **Log in**.

## Disable two-factor authentication

1. Go to the [**My profile**](https://portal.gcore.com/accounts/settings/user-profile) page and in the **Two-Factor authentication** section, click **Disable 2FA**.

<Frame>
  <img src="https://mintcdn.com/gcore/toaWJ7MjKRy4MQ0J/images/docs/account-settings/my-profile/two-factor-authentication/disable-2fa-section.png?fit=max&auto=format&n=toaWJ7MjKRy4MQ0J&q=85&s=040e3204b358fb813e06fc2d0169d0c2" alt="Disable 2FA button on My profile page" width="1517" height="454" data-path="images/docs/account-settings/my-profile/two-factor-authentication/disable-2fa-section.png" />
</Frame>

2. In the confirmation dialog that opens, review the message and click **Confirm**.

   A confirmation link will be sent to the email address associated with the account. The link is masked in the dialog for security.

3. Open the email and click the confirmation link.

Two-factor authentication is now disabled. The portal redirects to the **My profile** page where 2FA is shown as inactive.

<Warning>
  **Warning**

  The confirmation link is single-use and expires after a short period. If the link has expired or was already used, an error page appears — return to the **My profile** page and click **Disable 2FA** again to request a new link.
</Warning>

## View users with enabled two-factor authentication

The [All users](https://portal.gcore.com/accounts/settings/users) section in the **Profile** settings shows the 2FA status for each user. Filter by **Two-Factor authentication** using the values **Activated** or **Not activated**.
