Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance e107 to allow for third-party email address validation. #4900

Closed
CaMer0n opened this issue Oct 29, 2022 · 0 comments
Closed

Enhance e107 to allow for third-party email address validation. #4900

CaMer0n opened this issue Oct 29, 2022 · 0 comments
Labels
topic: documentation type: enhancement An improvement or new feature request
Milestone

Comments

@CaMer0n
Copy link
Member

CaMer0n commented Oct 29, 2022

Motivation

e107 currently uses simple email syntax validation, but is unable to check if an email address is deliverable, real or fake.

Proposed Solution

Allow plugin developers to override the check_email() function that is used throughout e107, in order to integrate with third-party solutions that can provide more extensive validation.

Example plugin usage (e_module.php)


e107::getOverride()->replace('check_email', 'myplugin_module::checkEmail');

class myplugin_module
{
        public static function checkEmail($email)
	{
		if(empty($email))
		{
			return false;
		}

		// run other checks. 

		// Valid email
		return $email;
	}
}

@CaMer0n CaMer0n added the type: enhancement An improvement or new feature request label Oct 29, 2022
@CaMer0n CaMer0n added this to the e107 2.3.3 milestone Oct 29, 2022
CaMer0n added a commit that referenced this issue Oct 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: documentation type: enhancement An improvement or new feature request
Projects
None yet
Development

No branches or pull requests

1 participant