Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Login Switch

1,050 sites Security covered Drupal 10–11
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

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
3
Tracked since
Jan 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 3
Maintenance
Dormant

Release Timeline

Releases

Version Type Core Release date
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