mirror of
https://github.com/wallabag/wallabag.git
synced 2025-10-10 19:32:07 +00:00
Merge pull request #1164 from wallabag/v2-remove-username-in-config
Remove ability to change username
This commit is contained in:
commit
e3c34bfc06
5 changed files with 25 additions and 33 deletions
|
@ -4,6 +4,7 @@ namespace Wallabag\CoreBundle\Entity;
|
|||
|
||||
use Doctrine\Common\Collections\ArrayCollection;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
|
||||
use Symfony\Component\Security\Core\User\UserInterface;
|
||||
use Symfony\Component\Security\Core\User\AdvancedUserInterface;
|
||||
use Symfony\Component\Validator\Constraints as Assert;
|
||||
|
@ -17,6 +18,9 @@ use JMS\Serializer\Annotation\Expose;
|
|||
* @ORM\Table
|
||||
* @ORM\HasLifecycleCallbacks()
|
||||
* @ExclusionPolicy("all")
|
||||
*
|
||||
* @UniqueEntity("email")
|
||||
* @UniqueEntity("username")
|
||||
*/
|
||||
class User implements AdvancedUserInterface, \Serializable
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue