From 3d7651846074dfb1175ef8a504cc54f6cc5309df Mon Sep 17 00:00:00 2001 From: Daniel Subiabre Date: Wed, 27 Mar 2024 10:09:33 +0100 Subject: [PATCH] Mark password as required in the api --- src/Entity/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Entity/User.php b/src/Entity/User.php index 98b9c27..7d0f4cf 100644 --- a/src/Entity/User.php +++ b/src/Entity/User.php @@ -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;