Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Login Switch

Security covered Under active development 1,220 sites

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
Drupal 10–11 PHP >=8.3

Ask your assistant about Login Switch

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
4
Tracked since
Jan 2025
Latest release
1 day ago
Releases (12 mo)
1 ▼ from 3
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
3.2.0 Stable 10–11 PHP >=8.3 Oct 15, 2026
3.1.1 Stable 10–11 Apr 24, 2025
3.1.0 Stable 10–11 Mar 26, 2025
3.x-dev Dev 10–11 Jan 15, 2025