Skip to content
This repository was archived by the owner on Oct 24, 2023. It is now read-only.

Commit bf4d5a0

Browse files
author
Barbara Palumbo
committed
fix: made password field as optional field
1 parent 710019e commit bf4d5a0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Core/Model/Customer/Customer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public function fieldDefinitions()
102102
'email' => [static::TYPE => 'string'],
103103
'firstName' => [static::TYPE => 'string', static::OPTIONAL => true],
104104
'lastName' => [static::TYPE => 'string', static::OPTIONAL => true],
105-
'password' => [static::TYPE => 'string'],
105+
'password' => [static::TYPE => 'string', static::OPTIONAL => true],
106106
'middleName' => [static::TYPE => 'string', static::OPTIONAL => true],
107107
'title' => [static::TYPE => 'string', static::OPTIONAL => true],
108108
'dateOfBirth' => [

src/Core/Model/Customer/CustomerDraft.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function fieldDefinitions()
8787
'firstName' => [static::TYPE => 'string', static::OPTIONAL => true],
8888
'middleName' => [static::TYPE => 'string', static::OPTIONAL => true],
8989
'lastName' => [static::TYPE => 'string', static::OPTIONAL => true],
90-
'password' => [static::TYPE => 'string'],
90+
'password' => [static::TYPE => 'string', static::OPTIONAL => true],
9191
'anonymousCartId' => [static::TYPE => 'string', static::OPTIONAL => true],
9292
'externalId' => [static::TYPE => 'string', static::OPTIONAL => true],
9393
'dateOfBirth' => [

0 commit comments

Comments
 (0)