Jump to content

Authentication error message correction


toydoy

Recommended Posts

Anyone who knows how to correct authentication error message?

For example, when password that is less than five characters is entered on registration.

currently default message is  as below.

THERE IS 1 ERROR.

1.1 passwd is invalid.

 

I want to change this to more informative text such as

"The password you entered is less than 5 characters. Please enter minimum 5 characters for password"

 

And please also let me know how to remove "1.1".

Please find attached pic for error message.

 

 

 

 

 

 

 

 

 

 

 

 

 

post-723348-0-80877300-1392192335_thumb.jpg

Link to comment
Share on other sites

validateController is a method the ObjectModel class, so it's in ObjectModel.php

You can change it only if you are willing to check whether the field is a password, and is it validated for creating a new account etc. and if those conditions have been met you can set a custom error message.

 

You need to set list-style:none for the OL that is used to display the errors.

 

Regards.

Robin.

The CartExpert Team

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