Problem/Motivation

_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 create an account and then send a registration mail.

Some modules dealing with user registration:

Steps to reproduce

Proposed resolution

Expose a public API for registering a user. A call to this API should result in a user being created and an appropriate email sent out.

Deprecate the register* ops of _user_mail_notify().

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

Issue fork drupal-3540702

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

znerol created an issue. See original summary.

deepakkm made their first commit to this issue’s fork.

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.