From 9e3ad401e91082b8740f54f1a5f20c823f72157e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Thu, 3 Aug 2023 16:43:06 +0200 Subject: [PATCH] Remove duplicate message when trying to create a user with same username --- src/Wallabag/UserBundle/Entity/User.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Wallabag/UserBundle/Entity/User.php b/src/Wallabag/UserBundle/Entity/User.php index 9d05929e8..3b0868fe4 100644 --- a/src/Wallabag/UserBundle/Entity/User.php +++ b/src/Wallabag/UserBundle/Entity/User.php @@ -13,7 +13,6 @@ use OpenApi\Annotations as OA; use Scheb\TwoFactorBundle\Model\BackupCodeInterface; use Scheb\TwoFactorBundle\Model\Email\TwoFactorInterface as EmailTwoFactorInterface; use Scheb\TwoFactorBundle\Model\Google\TwoFactorInterface as GoogleTwoFactorInterface; -use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity; use Wallabag\ApiBundle\Entity\Client; use Wallabag\CoreBundle\Entity\Config; use Wallabag\CoreBundle\Entity\Entry; @@ -26,9 +25,6 @@ use Wallabag\CoreBundle\Helper\EntityTimestampsTrait; * @ORM\Entity(repositoryClass="Wallabag\UserBundle\Repository\UserRepository") * @ORM\Table(name="`user`") * @ORM\HasLifecycleCallbacks() - * - * @UniqueEntity("email") - * @UniqueEntity("username") */ class User extends BaseUser implements EmailTwoFactorInterface, GoogleTwoFactorInterface, BackupCodeInterface {