Prestadine Posted December 17, 2013 Share Posted December 17, 2013 I need help. I'm trying to only allow a certain domain/ email extension, to be able to create an account for me prestashop site?? But have had no luck so far. I want to restrict the account creation to only accepted domain/s of my choosing i.e "@fake.com" . Any help in doing this would be greatly appreciated Link to comment Share on other sites More sharing options...
El Patron Posted December 17, 2013 Share Posted December 17, 2013 see classes/Validate.php here you will find validation of email, for example function isEmail Link to comment Share on other sites More sharing options...
vekia Posted December 17, 2013 Share Posted December 17, 2013 you can check email in function that El Patron suggested to use (validate class). use there this simple regular expression: ^[A-Z0-9._%+-][email protected]$ 1 Link to comment Share on other sites More sharing options...
lqlc Posted September 28, 2015 Share Posted September 28, 2015 you can check email in function that El Patron suggested to use (validate class). use there this simple regular expression: ^[A-Z0-9._%+-][email protected]$ Hi there Vekia, im trying to do exactly the same, but I dont understand this solution (sorry in advance for my lack of code knowledge) Can you please explain it with more detail? Thanks a lot!! 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