From b2d979ad9836f6cc5e5a41d18b417e9ea4952446 Mon Sep 17 00:00:00 2001 From: bach Date: Tue, 21 Nov 2023 10:56:03 +0100 Subject: [PATCH] advanced_email_validation --- composer.json | 1 + composer.lock | 109 +++++++++++++++++- .../advanced_email_validation.settings.yml | 22 ++++ config/sync/core.extension.yml | 1 + 4 files changed, 132 insertions(+), 1 deletion(-) create mode 100644 config/sync/advanced_email_validation.settings.yml diff --git a/composer.json b/composer.json index 353bd18..5145d16 100644 --- a/composer.json +++ b/composer.json @@ -17,6 +17,7 @@ "require": { "composer/installers": "^2.0", "drupal/address": "^1.12", + "drupal/advanced_email_validation": "^1.1", "drupal/config_pages": "^2.15", "drupal/content_as_config": "^1.0", "drupal/core-composer-scaffold": "^10.1", diff --git a/composer.lock b/composer.lock index 9817d84..9795376 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "da66dc5565e7553b45e62f2a3453d6c4", + "content-hash": "fe3a970f200733b71d21e9f07b783697", "packages": [ { "name": "asm89/stack-cors", @@ -1849,6 +1849,56 @@ "issues": "https://www.drupal.org/project/issues/adminimal_theme" } }, + { + "name": "drupal/advanced_email_validation", + "version": "1.1.5", + "source": { + "type": "git", + "url": "https://git.drupalcode.org/project/advanced_email_validation.git", + "reference": "1.1.5" + }, + "dist": { + "type": "zip", + "url": "https://ftp.drupal.org/files/projects/advanced_email_validation-1.1.5.zip", + "reference": "1.1.5", + "shasum": "39bb313fe3be5c329012aa5310a6081cdc7e9df0" + }, + "require": { + "drupal/core": "^9.3 || ^10", + "stymiee/email-validator": "^1.0.1" + }, + "type": "drupal-module", + "extra": { + "drupal": { + "version": "1.1.5", + "datestamp": "1686705109", + "security-coverage": { + "status": "covered", + "message": "Covered by Drupal's security advisory policy" + } + } + }, + "notification-url": "https://packages.drupal.org/8/downloads", + "license": [ + "GPL-2.0+" + ], + "authors": [ + { + "name": "Max Pogonowski (darvanen)", + "homepage": "https://www.drupal.org/u/darvanen", + "role": "Maintainer" + } + ], + "description": "User account email validation using MX records and lists of free or disposable emails (configurable).", + "homepage": "https://www.drupal.org/project/advanced_email_validation", + "keywords": [ + "Drupal" + ], + "support": { + "source": "http://cgit.drupalcode.org/advanced_email_validation", + "issues": "https://www.drupal.org/project/issues/advanced_email_validation" + } + }, { "name": "drupal/advanced_text_formatter", "version": "3.0.0-rc1", @@ -9552,6 +9602,63 @@ ], "time": "2023-05-07T05:35:17+00:00" }, + { + "name": "stymiee/email-validator", + "version": "1.1.3", + "source": { + "type": "git", + "url": "https://github.com/stymiee/email-validator.git", + "reference": "017a53567aadc82e51773b887d0dff381aae5f2e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/stymiee/email-validator/zipball/017a53567aadc82e51773b887d0dff381aae5f2e", + "reference": "017a53567aadc82e51773b887d0dff381aae5f2e", + "shasum": "" + }, + "require": { + "ext-json": "*", + "php": ">=7.2.0" + }, + "require-dev": { + "nunomaduro/phpinsights": "@stable", + "phpmd/phpmd": "@stable", + "phpunit/phpunit": "^8", + "squizlabs/php_codesniffer": "3.*" + }, + "type": "library", + "autoload": { + "psr-4": { + "EmailValidator\\": [ + "src/EmailValidator/" + ] + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "John Conde", + "email": "stymiee@gmail.com", + "homepage": "https://stymiee.dev", + "role": "Developer" + } + ], + "description": "The Email Validator library builds upon PHP's built in filter_var($emailAddress, FILTER_VALIDATE_EMAIL); by adding a default MX record check. It also offers additional validation against disposable email addresses, free email address providers, and a custom banned domain list.", + "homepage": "https://github.com/stymiee/php-simple-encryption", + "keywords": [ + "email", + "php", + "validation" + ], + "support": { + "issues": "https://github.com/stymiee/email-validator/issues", + "source": "https://github.com/stymiee/email-validator/tree/1.1.3" + }, + "time": "2022-10-11T19:23:13+00:00" + }, { "name": "symfony/console", "version": "v6.3.8", diff --git a/config/sync/advanced_email_validation.settings.yml b/config/sync/advanced_email_validation.settings.yml new file mode 100644 index 0000000..dc34917 --- /dev/null +++ b/config/sync/advanced_email_validation.settings.yml @@ -0,0 +1,22 @@ +_core: + default_config_hash: hDHibRMnt4UhcwZXzLcpuleyFpNXxIPIWdB_-XaCnyQ +langcode: fr +override_site_defaults: false +rules: + mx_lookup: mx_lookup + disposable: '0' + free: '0' + banned: '0' +error_messages: + basic: 'Not a valid email address' + mx_lookup: 'Not a valid email address' + disposable: 'Disposable emails are not allowed' + free: 'Free public email providers are not allowed' + banned: 'Emails using this domain are not allowed' +domain_lists: + disposable: + - '' + free: + - '' + banned: + - '' diff --git a/config/sync/core.extension.yml b/config/sync/core.extension.yml index 396905e..a779780 100644 --- a/config/sync/core.extension.yml +++ b/config/sync/core.extension.yml @@ -6,6 +6,7 @@ module: address: 0 admin_toolbar: 0 admin_toolbar_links_access_filter: 0 + advanced_email_validation: 0 advanced_text_formatter: 0 audiofield: 0 autocomplete_deluxe: 0