AndersHelbo Posted September 9, 2014 Share Posted September 9, 2014 Hi Does anyone knows how I can change the way the customers password should look like? I would like the password to be at least 6 characters long and contain both small and capital letters. How can I set this requirement on my Prestashop? Link to comment Share on other sites More sharing options...
hpar Posted September 9, 2014 Share Posted September 9, 2014 Hi, You will find it in Validate.php /** * Check for password validity * * @param string $passwd Password to validate * @param int $size * @return boolean Validity is ok or not */ public static function isPasswd($passwd, $size = Validate::PASSWORD_LENGTH) { return (Tools::strlen($passwd) >= $size && Tools::strlen($passwd) < 255); } Link to comment Share on other sites More sharing options...
El Patron Posted September 9, 2014 Share Posted September 9, 2014 you may want to review this module (code) and/or use the module, it's free http://www.prestashop.com/forums/topic/266085-module-password-widget-ps15-ps16/ 1 Link to comment Share on other sites More sharing options...
AndersHelbo Posted September 24, 2014 Author Share Posted September 24, 2014 Okay, thanks guys. I have installed the module and change the code, so at least six characters are required. Now... If I want the customer to type at least six characters and min. one capital letter. How do I do that? Link to comment Share on other sites More sharing options...
Recommended Posts