Skip to content

Commit

Permalink
Add comment why the email length is limited
Browse files Browse the repository at this point in the history
  • Loading branch information
carakas committed Nov 17, 2023
1 parent becadc1 commit c1d2f6d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Modules/Backend/Domain/User/UserDataTransferObject.php
Expand Up @@ -18,6 +18,7 @@ abstract class UserDataTransferObject implements UniqueDataTransferObjectInterfa
/**
* @Assert\Email(message="err.EmailIsInvalid")
* @Assert\NotBlank (message="err.EmailIsRequired")
* We have to limit the length because of the email because of unique index
* @Assert\Length(max=180, maxMessage="err.EmailIsTooLong")
*/
public ?string $email = null;
Expand Down

0 comments on commit c1d2f6d

Please sign in to comment.