Currently, REST Resources that initialize an operation using the Verification API always send an E-Mail to the user.
This may not be preferrable for all Verification Methods.
To ensure compatiblity with such Verification Methods, each request should be able to pass a flag to indicate whether an email should be sent or not.
Maybe even better would be to offload the sending of emails to the specific Verification Method.
Comments
Comment #2
chfoidl commentedThe `AdvancedUserRegistrationResource` now supports a custom HTTP Header to disable E-Mail notifications.
See https://git.drupalcode.org/project/user_api/-/commit/3ea71fd23a26aeb8dc4...