# Login & Registration

In Drupal, by default. Users can log in to the site using either their username or Email address, thanks to the Email Registration module.

<figure><img src="/files/2suEVDga7k9rGi7KAT8y" alt=""><figcaption><p>Login Page</p></figcaption></figure>

## **How It Works**

### **Login and Registration**

The module helps in managing users' sign-up process and forgotten passwords retrieval, users can signup using only their Email address, the username will be the username part of the Email, ex: <firstlast@vardot.com> will have the username “firstlast”.

### **Reset Password**

Password retrieval will also require the user to fill in their Email address rather than the username which will have more sense since the password retrieval link will be sent to the Email address.

<figure><img src="/files/95sUTcZmZh9gXa9nBqH4" alt=""><figcaption><p>Reset Password Form</p></figcaption></figure>

## **Enabling Email-Only Login**

Email-only login means that users will not be allowed to login using usernames anymore. To configure that follow the steps below:

1. Navigate to accounts setting page, **Administration \ Configuration \ People \&#x20;*****Account settings***
2. In **Email Registration** section select the **Allow log in with email address or username** check box

<figure><img src="/files/vqKBebGEp3jBVlVSzGmg" alt=""><figcaption><p>Navigating the Account Settings Page</p></figcaption></figure>

<figure><img src="/files/08JsDuc4PvNUVlMlMYXL" alt=""><figcaption><p><strong>Email Registration</strong> Section</p></figcaption></figure>

## **Updating Welcome Emails**

Welcome Emails might need updates regarding the needed token or for updating the template itself.

1. Navigate to **Administration \ Configuration \ People \ A*****ccount settings***
2. Scroll to the **Mailer policy** section
3. Check the templates, you can update the template by clicking on **Edit** button.

<figure><img src="/files/3cBWaS7fIgDkDRfKF7zJ" alt=""><figcaption><p><strong>Mailer Policy</strong> Section</p></figcaption></figure>

## **Enabling Username-only Login**

To have username only login, the Email registration module should be uninstalled from the site.

1. Navigate to **Extend \&#x20;*****Uninstall module***
2. Search for the module name
3. Uninstall it

<figure><img src="/files/aIApTm53upUUkuNpKJCV" alt=""><figcaption><p>Navigate <strong>Uninstall Module</strong> Page</p></figcaption></figure>


---

# 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://docs.varbase.vardot.com/10.1.x/content-designers/user-management/login-and-registration.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.
