Skip to content

Commit

Permalink
[User] Fix validation
Browse files Browse the repository at this point in the history
Automatic commit for getparthenon/monorepo@71a00bc
  • Loading branch information
that-guy-iain committed Feb 29, 2024
1 parent a2bc02c commit 3ef9a31
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions src/User/Entity/User.php
Expand Up @@ -24,17 +24,13 @@ class User implements UserInterface, EquatableInterface, DeletableInterface
{
public const DEFAULT_ROLE = 'ROLE_USER';
protected $id;
/**
* @Assert\NotBlank(message="parthenon.user.validation.email.not_blank")
*
* @Assert\Email(message="parthenon.user.validation.email.email")
*/

#[Assert\NotBlank(message: 'parthenon.user.validation.email.not_blank')]
#[Assert\Email(message: 'parthenon.user.validation.email.email')]
protected string $email;
/**
* @Assert\NotBlank(message="parthenon.user.validation.password.not_blank")
*
* @Assert\Length(min="8", minMessage="parthenon.user.validation.password.length")
*/

#[Assert\NotBlank(message: 'parthenon.user.validation.password.not_blank')]
#[Assert\Length(min: 8, minMessage: 'parthenon.user.validation.password.length')]
protected string $password;
protected ?string $name = null;
protected string $confirmationCode;
Expand Down

0 comments on commit 3ef9a31

Please sign in to comment.