This module enhances Drupal's password reset functionality by preventing username enumeration. It displays the same message whether a provided username or email address is valid or invalid, thus protecting against brute-force or account lockout attacks.
Another similar module you may want to try before trying this module (it has more installs, more popular):
username enumeration protection
The Forgot Password feature of core can be used to gather information such as valid usernames. Then these information may be used to perform brute force attack or account lockout attack(DoS).
This module addresses this by giving the same message for both Valid/invalid username/email Id.
Overview:
Makes password reset form more secured by not disclosing valid usernames
Installation (D9):
composer require 'drupal/secure_password_reset:^1.0@beta'
2. Go to "Administer" -> "Modules" and enable the module.
Thats all there is to it, the password reset form should now give the user the same message in both cases of valid or invalid username
Installation (D7):
1. Copy the secure_password_reset directory to the Drupal sites/<...>/modules/ directory.
2. Go to "Administer" -> "Modules" and enable the module.
Thats all there is to it, the password reset form should now give the user the same message in both cases of valid or invalid username
Ask your assistant about Secure Password Reset
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
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 8.x-1.0-rc2 | Pre-release | 8–11 | Mar 26, 2024 | ||
| 8.x-1.0-rc1 | Pre-release | 8–10 | May 30, 2023 |