Jump to content

Case Insensitive Email on Login


Recommended Posts

Hi there,

 

Does anyone know how to make the email check on the login case insensitive? In testing, I immediately came upon cases where people will type all caps, all lowercase, title case, etc, sometimes causing a failure because PrestaShop is looking for an exact match.

 

For example:

[email protected] fails for [email protected]

 

Thanks for any advice.

 

James

Link to comment
Share on other sites

There are two ways that you can handle this. You can either look for the section of code that processes the forms and use a php function to convert the string to lowercase. Or you can add the css text-transform:lowercase to you email input box on your form.

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