Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Content Translation Redirect Module content_translation_redirect crossed 1,000 active installs.

Login Switch

996 sites Security covered
View on drupal.org

This module allows you to change the paths for user login, registration, and password reset. You can customize these paths or disable the default Drupal routes.

VERSION

Current Verson 3.1

INTRODUCTION

The Login Switch is a module that modifies Drupal's core user.login, user.register, user.password routes by changing the path to a custom path.

REQUIREMENTS

This module requires no modules outside of Drupal core.

INSTALLATION

Recommended installation: composer require drupal/login_switch.

Install the user login_switch module as you would normally install a contributed Drupal module.

Visit https://www.drupal.org/node/1897420 for further information.

CONFIGURATION

There is a configuration page located at /admin/config/login_switch.

The route can be overridden in your settings file using the following: $config['login_switch.settings']['login_route'] = ''; $config['login_switch.settings']['register_route'] = ''; $config['login_switch.settings']['password_route'] = '';

You can turn on and off the module using the Disable Default User Login Route checkbox. Checked will override the default route with either /drupal/login or one custom set by you. Please remember to clear all caches for this to take effect.

New in 2.1 we added the ability to add a nofollow header for each of the routes.

TROUBLESHOOTING

If the route is not picked up immediately, clear your Drupal caches either at /admin/config/development/performance OR use the "drush cr" command

MAINTAINERS

Currently maintained by:

  • Matthew Sherman

Activity

Total releases
3
First release
Jan 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 3
Maintenance
Dormant

Release Timeline

Releases

Version Type Release date
3.1.1 Stable Apr 24, 2025
3.1.0 Stable Mar 26, 2025
3.x-dev Dev Jan 15, 2025