Review main Merged

66179[FEATURE] Improved Email Validation

Georg Ringer CR +2 V +2 Normal +60 −2 updated 10/20/20, 08:33

Commit message

The method :php`\TYPO3\CMS\Core\Utility\GeneralUtility::validEmail`
is used to validate a given email address through the core
and TYPO3 extensions.

The validation can now be configured by providing the used
validators to be used in the LocalConfiguration.php or
AdditionalConfiguration.php.

Example:

   $GLOBALS['TYPO3_CONF_VARS']['MAIL']['validators'] = [
     \Egulias\EmailValidator\Validation\RFCValidation::class,
     \Egulias\EmailValidator\Validation\DNSCheckValidation::class'
   ];

The RFCValidation validator is still be used as default.

Furthermore, following validators are available:

- Egulias\EmailValidator\Validation\DNSCheckValidation
- Egulias\EmailValidator\Validation\SpoofCheckValidation
- Egulias\EmailValidator\Validation\NoRFCWarningsValidation

It is also possible to provide own validators which must implement
the Egulias\EmailValidator\Validation\EmailValidation interface.

If multiple validators are provided, each validator must return TRUE.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 4