// Allow non-latin characters to the password + change limit from 32 to 255.

This commit is contained in:
mDeflotte
2012-05-11 08:54:36 +00:00
parent f11e13e7e0
commit f7d087fbf6
+1 -1
View File
@@ -407,7 +407,7 @@ class ValidateCore
*/ */
public static function isPasswd($passwd, $size = 5) public static function isPasswd($passwd, $size = 5)
{ {
return preg_match('/^[.a-zA-Z_0-9-!@#$%\^&*()]{'.(int)$size.',32}$/', $passwd); return (Tools::strlen($passwd) > $size && Tools::strlen($passwd) < 255);
} }
public static function isPasswdAdmin($passwd) public static function isPasswdAdmin($passwd)