The purpose of this module is to provide for duplicate email addresses checking for domains that allow extraneous characters to be placed inside usernames and be treated as different email addresses. For example:
abdulaziz@gmail.com
a.bdulaziz@gmail.com
ab.dulaziz@gmail.com
Dots don't matter in Gmail addresses
All three of these email addresses go to the same Gmail account and can be registered as three different accounts in Drupal. This module catches this condition and can be set up to filter other characters and domain email providers for similar systems.
For Developers:
$moduleHandler = \Drupal::service('module_handler');
if ($moduleHandler->moduleExists('unwanted_email_registration')) {
$service = \Drupal::service('unwanted_email_registration.services');
if ($service->validateEmail($email) === FALSE) {
// Do Something here , Like Error messages
return FALSE;
}
}
Project information
- Project categories: Integrations, Security
22 sites report using this module
- Created by abdulaziz zaid on , updated
Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.


