Jump to content

How do I specify restrictions on email extension when creating new user accounts?


Recommended Posts

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

  • 1 year later...

 

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

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...