Drupal is a registered trademark of Dries Buytaert
cms 2.1.0 Update released for Drupal core (2.1.0)! menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). ai 1.2.13 Minor update available for module ai (1.2.13). ai 1.3.2 Minor update available for module ai (1.3.2). moderated_content_bulk_publish 2.0.51 Minor update available for module moderated_content_bulk_publish (2.0.51). moderated_content_bulk_publish 2.0.50 Minor update available for module moderated_content_bulk_publish (2.0.50). editoria11y 2.2.21 Minor update available for module editoria11y (2.2.21). eca 3.1.0 Minor update available for module eca (3.1.0). sophron 3.1.1 Minor update available for module sophron (3.1.1). ai 1.3.1 Minor update available for module ai (1.3.1). seven 2.0.0-beta6 New beta version released for theme seven (2.0.0-beta6). seven 1.0.1-beta1 First beta version released for theme seven (1.0.1-beta1). miniorange_saml 3.1.4 Minor update available for module miniorange_saml (3.1.4). eca_tamper 2.0.10 Minor update available for module eca_tamper (2.0.10). modeler_api 1.1.1 Minor update available for module modeler_api (1.1.1). turnstile 1.1.26 Minor update available for module turnstile (1.1.26). email_tfa 2.0.8 Minor update available for module email_tfa (2.0.8). paragraphs_entity_embed 4.0.0 Major update available for module paragraphs_entity_embed (4.0.0). bootstrap_italia 2.17.4 Minor update available for theme bootstrap_italia (2.17.4). bootstrap_italia 2.17.6 Minor update available for theme bootstrap_italia (2.17.6).

Magic Login Link provides a secure, passwordless authentication method for Drupal. It adds a "Login with Magic Link" option to your site, allowing users to receive a one-time, time-sensitive sign-in link via email. This eliminates the "forgotten password" friction and improves user retention by providing a seamless, modern entry point to your website.

Features

This module simplifies the login experience without compromising security. Key features include:

One-Time Use Tokens: Links are automatically invalidated the moment they are successfully used, preventing "replay" attacks.

UUID-Based Security: Unlike traditional methods that expose numeric User IDs (UIDs) in URLs, this module uses obscure UUIDs to prevent user enumeration.

Automatic Expiration: Links are strictly time-limited (defaulting to 15 minutes) to ensure stale links in inboxes cannot be exploited.

Zero-Password Friction: Perfect for sites where users visit infrequently or for communities that want to move toward a passwordless future.

Developer Friendly: Built with Drupal 11 standards and includes a full suite of Kernel tests for reliability.

Post-Installation

Once installed, the module is ready to go with zero configuration required:

Navigate to your site's login page (/user/login).

You will see a new button: "Login with Magic Link".

Users simply enter their email or username and click the button to receive their link.

The email sent uses the site's default mail system. You can customize the email look and feel using standard Drupal mail templates or modules like MailSystem and SwiftMailer/Symfony Mailer.

Additional Requirements

This module is designed to be lightweight and has no additional requirements beyond Drupal Core. It is fully compatible with Drupal 10 and Drupal 11.

To enhance the delivery and security of your magic links, we recommend:

Symfony Mailer / Redirect: To ensure your emails are delivered reliably via SMTP or API (SendGrid, Mailgun, etc.).

Flood Control: While this module uses basic throttling, the Flood Control module provides a UI to manage login attempt limits globally.

Similar projects

Passwordless: A similar concept, but Magic Login Link differs by utilizing the State API for token storage and UUIDs for routing, providing a more modern architectural approach for Drupal 10/11.

Email Registration: Often used alongside magic links to allow users to log in exclusively with email addresses rather than usernames.

Supporting this Module

If you find this module helpful, please consider reporting bugs or suggesting features in the issue queue. Community feedback is the best way to support development!

Community Documentation

Detailed technical documentation, including how to extend the token logic or customize the redirect destination, can be found in the README.md file included with the module source code.

Activity

Total releases
1
First release
Apr 2026
Latest release
19 hours ago
Release cadence
Stability
0% stable

Releases

Version Type Release date
1.0.x-dev Dev Apr 3, 2026