# Two Factor Authentication

{% hint style="info" %}
Navigate to **Account > 2FA Configuration**
{% endhint %}

## Setup

1. Select **Email** as your 2FA Method.

<figure><img src="/files/4WliQ61Svw6nZGughmqg" alt="" width="440"><figcaption></figcaption></figure>

{% hint style="info" %}
Your [mail delivery method](/application-reference/settings/common-system-settings/mail-settings.md) determines how your Lucy server will send the 2FA verification code.
{% endhint %}

{% hint style="danger" %}
SMS-based 2FA is no longer supported.
{% endhint %}

2. Click **Save** to commit your 2FA method.
3. Click **Configure 2FA**.

The following screen will prompt you to enter the token that was sent to your defined administrator email address. This token will remain active for 20 minutes.

<figure><img src="/files/68XNuI5yXfvthZSTFHtm" alt=""><figcaption></figcaption></figure>

The email received will be displayed as such:

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

Once the code has been entered, you have successfully integrated and authenticated your user using email-based two-factor authentication.

{% hint style="info" %}
If you do not receive the code, please check your spam folder and ensure you have defined a system notification email in the [Advanced System Settings](/application-reference/settings/advanced-system-settings/advanced-settings.md#system-notification-email).
{% endhint %}

{% hint style="info" icon="xmark-large" %}
Each verification code allows **up to three attempts**. After three failed attempts, the code **expires** and a **new verification code must be generated**.
{% endhint %}


---

# Agent Instructions: 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:

```
GET https://wiki.lucysecurity.com/application-reference/account-settings/two-factor-authentication.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
