From 5427646967e5c4e02558b564ba645263e2cb1d07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Mon, 9 Aug 2021 11:41:02 +0200 Subject: [PATCH] change password require 8 char instead of 10 --- src/Models/Customer.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Models/Customer.php b/src/Models/Customer.php index efb476d..01b2988 100644 --- a/src/Models/Customer.php +++ b/src/Models/Customer.php @@ -16,6 +16,9 @@ use TypeError; * * @property string $hashcode The crm hashcode this is a readonly field * @property string $email Must be a rfc valid email on a valid domain name + * @property string $password Required only on create, must have upper and lowers chars, + * at least 1 number, at leat 1 upper char, at least 1 lower char and + * at leat 1 special char * @property string $firstname The account first name * @property string $lastname The account last name * @property string $birth_date The account birth date 'yyyy-mm-dd' @@ -79,9 +82,9 @@ class Customer extends CrmClientModel * This is set only when creating a user * Otherwise it has to be set to null * - * Validate: case_diff,numbers,letters,symbols,min:10 + * Validate: case_diff,numbers,letters,symbols,min:8 * - * Min length 10 + * Min length 8 * Max length 255 * Field Type varchar * @@ -269,7 +272,7 @@ class Customer extends CrmClientModel 'email' => 'required|email:rfc,dns,spoof,filter', 'firstname' => 'required|string|min:2|max:255', 'lastname' => 'required|string|min:2|max:255', - 'password' => 'required|min:10|max:255', + 'password' => 'required|min:8|max:255', 'birth_date' => 'required|date_format:Y-m-d', 'phone' => 'sometimes|string|min:10|max:255', 'address' => 'required|string|max:255',