> For the complete documentation index, see [llms.txt](https://salsa-digital.gitbook.io/govcms-content-administration/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://salsa-digital.gitbook.io/govcms-content-administration/logging-in-2fa-and-the-admin-interface/two-factor-authentication-2fa.md).

# Two‑factor authentication (2FA)

All websites on GovCMS require **two-factor authentication** (2FA). This is to prevent unauthorised access by people who may steal or obtain a username and password.

Traditional 2FA is setup using a QR code and a mobile phone application. We have a full guide on how to set that up on the [GovCMS Knowledge Base](https://www.govcms.support/support/solutions/articles/51000048926).

This section of the user manual will show you how to setup your 2FA for the GovCMS training environment, which uses email and browser trust instead of the phone application method.

1. Once logged in, click on your name in the Admin toolbar, and then on **Edit profile**.

<figure><img src="/files/ZXjuPsXjP7dTZZiCMTx3" alt=""><figcaption></figcaption></figure>

2. Click on the **TFA** tab, and then on **Email codes**.

<figure><img src="/files/1wXTomB70XRRuiohlb5I" alt=""><figcaption></figcaption></figure>

3. The next screen will ask for your **current password**. Enter it and select **Confirm**.

<figure><img src="/files/8JIAykweF5tEdq3vUZ8f" alt=""><figcaption></figcaption></figure>

4. Check the box **Receive authentication code by email** and then select **Save**.

<figure><img src="/files/naVTkGxhy0yGcVsXtUL0" alt=""><figcaption></figcaption></figure>

5. The next screen will provide a confirmation message. Select **Save** to continue.

<figure><img src="/files/D9mjEaD9hkEag631wgfz" alt=""><figcaption></figcaption></figure>

6. You'll be presented with a screen that will provide you the option to **Configure trusted browsers**. This is an optional step but it's *recommended* to check this box if you want to bypass TFA the next time you log in using the same device.

<figure><img src="/files/1Pc2JmnFpG7q6r4RUmyc" alt=""><figcaption></figcaption></figure>

7. Select **Configure trusted browsers**. Enter your password on the following screen and select **Confirm**.<br>
8. Ensure the **Trust this browser** option is checked and select **Save**.

<figure><img src="/files/0Jokv8q8yqJIPE3unYWc" alt=""><figcaption></figcaption></figure>

8. Your TFA is now configured.

### What happens if you choose not to **Trust this browser**?

After logging in, you'll be presented with the TFA page. Click on **Send** to receive an email to your account's email address. The email will contain a code that you'll need to copy and paste into the website to confirm your access.

{% hint style="info" %}
If you do not click on **Send**, no code will be sent to your email.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://salsa-digital.gitbook.io/govcms-content-administration/logging-in-2fa-and-the-admin-interface/two-factor-authentication-2fa.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
