change password require 8 char instead of 10

This commit is contained in:
Jérémy Munsch 2021-08-09 11:41:02 +02:00
parent 6e04439a0b
commit 5427646967

View file

@ -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',