> For the complete documentation index, see [llms.txt](https://docs.devolutions.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devolutions.net/server/knowledge-base/how-to-articles/enable-emergency-login-code-authentication.md).

# Enable emergency login code authentication

In Devolutions Server you can enable the feature for an emergency access to allow login for administrators even if providers are down.

### Settings

{% hint style="warning" %}
Please note that a functional SMTP server is mandatory for this process.
{% endhint %}

1. In the Devolutions Server Web interface, validate that you have an email server (SMTP) configured under ***Administration – Server settings – Email***.
2. Enable the feature ***Enable emergency code authentication*** in ***Administration – Server settings – Authentication***.

![](https://cdnweb.devolutions.net/docs/DVLS6058_2025_3.png)

3. In ***Administration – Users – General***, enable the option ***Enable emergency login*** for each administrator.

{% hint style="warning" %}
The user must be an administrator. Having administrator rights only via a ***User groups*** will not work. Each administrator will have to configure an email to receive the emergency code.
{% endhint %}

![](https://cdnweb.devolutions.net/docs/docs_en_kb_KB4989.png)

### End user experience

On login, the option to do an ***Emergency login*** will become available.

1. Click ***Emergency Login***.

![](https://cdnweb.devolutions.net/docs/DVLS6059_2025_3.png)

2. Enter a ***Username*** and click ***Request emergency code***.

{% hint style="info" %}
For Active Directory systems, the ***Username*** must be entered following the User Principal Name (UPN) format. Meaning that the "username" is followed by the "at sign" followed by the name of the Internet domain with which the user is associated.
{% endhint %}

![](https://cdnweb.devolutions.net/docs/docs_en_kb_KB4991.png)

3. Paste the emergency code, received by email, and click ***Log in***.

![](https://cdnweb.devolutions.net/docs/docs_en_kb_KB4992.png)

A log will be shown in the audit and in the administration email that an emergency login was used.


---

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

```
GET https://docs.devolutions.net/server/knowledge-base/how-to-articles/enable-emergency-login-code-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.
