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).

Disable Drupal Login

17 sites No security coverage Drupal 10 · not 11
View on drupal.org

This module disables the default Drupal username and password login form, forcing users to authenticate through an external Single Sign-On (SSO) solution. It ensures that the login route remains accessible while preventing direct login and registration via Drupal's built-in system. This is useful when integrating with identity providers like OpenID Connect.

This simple module just disables the stock Drupal username/password login, while keeping the `user.login` route in place. We had a need for this, while using the OpenID Connect module, to rely solely on our OpenID Connect supported SSO solution for authentication.

Features

This can be used for any solution where you rely on an external authentication/SSO identity provider, but still want to maintain the `/user/login` path. This simply removes the ability for new users to register, to use the password reset route, and they will no longer see the user login form.

Post-Installation

You'll want to make sure you have your separate login method setup prior to installing this module. After that though, just install and it'll remove the form and reset link from the `/user/login` page.

Additional Requirements

None, though you'll want to set up the external authentication (OpenID Connect, Social Auth, etc.) of your choosing prior to installing this module..

OpenID Connect
Social Auth

Similar projects

I looked into other options, but they seemed to screw with the routing in some fashion; either hiding it or obfuscating it in some way. They were more about making it harder to user the Drupal login, not replacing it with an external authentication method.

Supporting this Module

Community Documentation

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

Releases

Version Type Core Release date
1.0.0 Stable 10 Jul 18, 2025