Mark password as required in the api

This commit is contained in:
2024-03-27 10:09:33 +01:00
parent 20d7b98421
commit 3d76518460
+1 -1
View File
@@ -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;