toydoy Posted February 12, 2014 Share Posted February 12, 2014 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. Link to comment Share on other sites More sharing options...
CartExpert.net Posted February 12, 2014 Share Posted February 12, 2014 Hi. The invalid error message is a dynamic error message created in the ObjectModel class (validateController). The ones at the start can be removed by setting disabling the list style for the <ol> Regards.Robin.The CartExpert Team Link to comment Share on other sites More sharing options...
toydoy Posted February 12, 2014 Author Share Posted February 12, 2014 Thanks for the reply. Where is validateController? is it /classes/Validate.php ? And how can I disable <ol>? I cannot change the error message? Link to comment Share on other sites More sharing options...
CartExpert.net Posted February 12, 2014 Share Posted February 12, 2014 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 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