diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-04-01 21:58:08 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-04-01 21:58:08 +0200 |
commit | e3c34bfc06f3ea266a418d6246560f15d3f73e2a (patch) | |
tree | 6c6465b6e936b0d38d0d3fdc489fb9e576a5e09c /src/Wallabag/CoreBundle/Entity | |
parent | d6fa2f70ac3c798b28ce33c6c143f45c09c74062 (diff) | |
parent | c844dc0c50bb4f1044154401310af25eb21b0f11 (diff) | |
download | wallabag-e3c34bfc06f3ea266a418d6246560f15d3f73e2a.tar.gz wallabag-e3c34bfc06f3ea266a418d6246560f15d3f73e2a.tar.zst wallabag-e3c34bfc06f3ea266a418d6246560f15d3f73e2a.zip |
Merge pull request #1164 from wallabag/v2-remove-username-in-config
Remove ability to change username
Diffstat (limited to 'src/Wallabag/CoreBundle/Entity')
-rw-r--r-- | src/Wallabag/CoreBundle/Entity/User.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Entity/User.php b/src/Wallabag/CoreBundle/Entity/User.php index 1652170f..ff08c8fb 100644 --- a/src/Wallabag/CoreBundle/Entity/User.php +++ b/src/Wallabag/CoreBundle/Entity/User.php | |||
@@ -4,6 +4,7 @@ namespace Wallabag\CoreBundle\Entity; | |||
4 | 4 | ||
5 | use Doctrine\Common\Collections\ArrayCollection; | 5 | use Doctrine\Common\Collections\ArrayCollection; |
6 | use Doctrine\ORM\Mapping as ORM; | 6 | use Doctrine\ORM\Mapping as ORM; |
7 | use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity; | ||
7 | use Symfony\Component\Security\Core\User\UserInterface; | 8 | use Symfony\Component\Security\Core\User\UserInterface; |
8 | use Symfony\Component\Security\Core\User\AdvancedUserInterface; | 9 | use Symfony\Component\Security\Core\User\AdvancedUserInterface; |
9 | use Symfony\Component\Validator\Constraints as Assert; | 10 | use Symfony\Component\Validator\Constraints as Assert; |
@@ -17,6 +18,9 @@ use JMS\Serializer\Annotation\Expose; | |||
17 | * @ORM\Table | 18 | * @ORM\Table |
18 | * @ORM\HasLifecycleCallbacks() | 19 | * @ORM\HasLifecycleCallbacks() |
19 | * @ExclusionPolicy("all") | 20 | * @ExclusionPolicy("all") |
21 | * | ||
22 | * @UniqueEntity("email") | ||
23 | * @UniqueEntity("username") | ||
20 | */ | 24 | */ |
21 | class User implements AdvancedUserInterface, \Serializable | 25 | class User implements AdvancedUserInterface, \Serializable |
22 | { | 26 | { |