Mark password as required in the api
This commit is contained in:
+1
-1
@@ -72,7 +72,7 @@ class User implements UserInterface, UserOwnedInterface, PasswordAuthenticatedUs
|
||||
*/
|
||||
#[Assert\NotBlank(['groups' => ['postValidation']])]
|
||||
#[Assert\Length(min: 12)]
|
||||
#[API\ApiProperty(writable: true, readable: false)]
|
||||
#[API\ApiProperty(writable: true, readable: false, required: true)]
|
||||
#[SerializedName('password')]
|
||||
private ?string $plainPassword = null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user