In Prestashop 1.5, the code to check if the customer password has 5 characters is located in Validate.php file and is the following :
public static function isPasswd($passwd, $size = 5)
{
return (Tools::strlen($passwd) >= $size && Tools::strlen($passwd) < 255);
}
Would anyone know how to change it, in order to check if the password complies with the five here below rules :
- at least 8 characters
- at least one uppercase
- at least one lowercase
- at least one special character
- at least one digit
Thank you any advance for any help in this matter.
Patrick