Emeraldas Posted December 5, 2022 Share Posted December 5, 2022 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 More sharing options...
endriu107 Posted December 6, 2022 Share Posted December 6, 2022 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 More sharing options...
Knowband Plugins Posted December 7, 2022 Share Posted December 7, 2022 The above code will block all the new customer who register using the "icloud". Even you can try by adding the Google recpactha , during the registration. Link to comment Share on other sites More sharing options...
endriu107 Posted December 7, 2022 Share Posted December 7, 2022 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. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now