Skip to main content
drupalreleases
Release: Cms 2.2.3 — Update released for Drupal core (2.2.3)! Release: Libraries API 4.2.1 — Minor update available for module libraries (4.2.1). Release: Menu Link Attributes 8.x-1.10 — Minor update available for module menu_link_attributes (8.x-1.10). Release: Menu Link Attributes 8.x-1.9 — Minor update available for module menu_link_attributes (8.x-1.9). Release: Menu Item Extras 3.2.0 — Minor update available for module menu_item_extras (3.2.0). Release: Layout Paragraphs 2.1.4 — Minor update available for module layout_paragraphs (2.1.4). Release: PhotoSwipe - Responsive JavaScript Modal Image Gallery 5.0.11 — Minor update available for module photoswipe (5.0.11). Release: Search API attachments 10.0.13 — Minor update available for module search_api_attachments (10.0.13). Module Revived: Libraries API 4.2.0 — Module libraries updated after 11 months of inactivity (4.2.0). Security Coverage: Component Library — Module component_library now has official Drupal security advisory coverage.

Secure Magic Login Link

17 sites Security covered Drupal 10–11
View on drupal.org

This module offers an alternative login method for Drupal, allowing users to sign in using a time-sensitive, one-time link sent to their email. It adds a "Login with Magic Link" option to the existing login form without requiring any external dependencies.

Magic Login Link provides an alternative authentication method for Drupal via time-sensitive, one-time sign-in links delivered to a user's email address. It adds a "Login with Magic Link" section to the standard user login form.

Magic Login Link Features:

  • Standalone Implementation: The module has zero dependencies and requires no third-party libraries or JavaScript.
  • One-Time Use Tokens: Tokens are stored in the State API and invalidated immediately upon a successful login to prevent replay attacks.
  • UUID-Based Routing: Uses account UUIDs rather than numeric User IDs (UIDs) in the URL structure to mitigate user enumeration.
  • Token Expiration: Links are time-limited (defaulting to 15 minutes) and are automatically ignored by the controller after they expire.
  • Built-in Throttling: Includes a MagicLoginThrottler service to limit the frequency of link requests per email address.
  • Automated Testing: Contains Kernel tests covering token generation, expiration logic, and access control.
  • Core Compatibility: Requires Drupal 10.2+ or Drupal 11.

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.

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

  • Magic Link: This module provides similar link-based authentication but requires the HTMX module as a dependency. Magic Login Link is a standalone solution with zero external dependencies and no JavaScript requirement.
  • Passwordless: This project replaces the standard Drupal login form entirely with its own interface. Furthermore, it currently lacks a stable release for Drupal 11. Magic Login Link maintains the core login experience by extending the existing form and is built specifically for Drupal 10.2 and 11.
  • Simple Login: Like Passwordless, this module focuses on a themed, standalone login page that replaces the default core login form. Magic Login Link is designed for sites that wish to keep the standard /user/login form intact while offering an additional authentication method.

Depends on

Dependencies of the latest stable release

  • user Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
4
Tracked since
Apr 2026
Latest release
1 month ago
Releases (12 mo)
4 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
1.0.4 Stable 10–11 Aug 19, 2026
1.0.0 Stable 10–11 Apr 22, 2026
1.0.1 Stable 10–11 Apr 10, 2026
1.0.x-dev Dev 10–11 Apr 3, 2026