Active
Project:
Drupal core
Version:
main
Component:
user system
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
11 Aug 2025 at 08:47 UTC
Updated:
12 Mar 2026 at 11:31 UTC
Jump to comment: Most recent
_user_mail_notify() is an internal, underscore-prefixed function. Still it is widely used in contrib and likely in custom modules. Some research in #3539178-27: Extract _user_mail_notify() into a user NotificationHandler turned out a non-exhaustive list of modules which for various reasons attempt to send a password reset email.
Some modules dealing with password resets:
Expose a public API for initiating a password reset for a particular account. A call to this API should result in a password reset email sent to the address registered with that account.
This could be part of the UserInterface:
/**
* Returns TRUE if a password reset can be initiated on this account.
*/
public function isPasswordResetEnabled(): bool;
/**
* Initiate a password reset for the user.
*
* Returns TRUE if a password reset message was sent to the owner of this account.
*/
public function initiatePasswordReset(): bool;
Deprecate the password_reset op of _user_mail_notify().
Comments
Comment #3
znerol commentedPostponed on #3578758: Investigate calls to _user_mail_notify() to identify missing API surface.