Commit 7191ddac authored by Mat's avatar Mat

Serializer, exclude les passwords de User

parent 45c6aa7a
......@@ -3,6 +3,7 @@
namespace SocketBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use JMS\Serializer\Annotation as Serializer;
use Symfony\Component\HttpFoundation\File\UploadedFile;
use Symfony\Component\Security\Core\User\UserInterface;
use Symfony\Component\Validator\Constraints as Assert;
......@@ -53,6 +54,7 @@ class User implements UserInterface
/**
* @var string
* @ORM\Column(name="password", type="string", length=255, nullable=false, unique=false)
* @Serializer\Exclude()
*/
private $password;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment