Jump to content

Prevent @icloud from create / register a new account


Emeraldas

Recommended Posts

Hello there

I am looking for a solution to this Set up and use Hide My Email from Icloud+, where icloud members can create an account with a "fake" email and proceed with their order. I understand this feature has it purpose but for the last two weeks i have multiple of these accounts place orders on my eshop that are fake.

Could you please provide me with a solution to prevent them from creating an account when the email is @icloud.com

My prestashop version is 1.7.6

Thank you!

Link to comment
Share on other sites

In Validate class you have method isEmail there you can check if email contains word icloud by adding code at top of this method, something like that:

$icloud = 'icloud';
if (strpos($email, $icloud)) === true {
	return false;
}

This code is not tested it's just example, and all changes should by added as override.

Link to comment
Share on other sites

33 minutes ago, Knowband Plugins said:

The above code will block all the new customer who register using  the "icloud".

 

On 12/6/2022 at 12:50 AM, Emeraldas said:

Could you please provide me with a solution to prevent them from creating an account when the email is @icloud.com

That's the goal.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...