diff --git a/classes/Validate.php b/classes/Validate.php index 9de147573..2b0e54e46 100644 --- a/classes/Validate.php +++ b/classes/Validate.php @@ -407,7 +407,7 @@ class ValidateCore */ public static function isPasswd($passwd, $size = 5) { - return (Tools::strlen($passwd) > $size && Tools::strlen($passwd) < 255); + return (Tools::strlen($passwd) >= $size && Tools::strlen($passwd) < 255); } public static function isPasswdAdmin($passwd) diff --git a/controllers/front/ParentOrderController.php b/controllers/front/ParentOrderController.php index 55d58f572..25f902d71 100644 --- a/controllers/front/ParentOrderController.php +++ b/controllers/front/ParentOrderController.php @@ -109,7 +109,7 @@ class ParentOrderControllerCore extends FrontController } } else - $this->errors[] = Tools::displayError('Voucher name invalid.'); + $this->errors[] = Tools::displayError('This voucher does not exists'); } $this->context->smarty->assign(array( 'errors' => $this->errors,