From 0ac49a693092b3dafac064a059bc4c8f64d6cc73 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Mon, 24 Jan 2022 22:07:40 +0100 Subject: [PATCH] add interface in the user entity --- src/Entity/User.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Entity/User.php b/src/Entity/User.php index ac74eb7..447a323 100644 --- a/src/Entity/User.php +++ b/src/Entity/User.php @@ -7,13 +7,14 @@ use App\Core\Entity\EntityInterface; use App\Repository\UserRepository; use Doctrine\ORM\Mapping as ORM; use Scheb\TwoFactorBundle\Model\Google\TwoFactorInterface; +use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface; use Symfony\Component\Security\Core\User\UserInterface; /** * @ORM\Entity(repositoryClass=UserRepository::class) * @ORM\HasLifecycleCallbacks() */ -class User implements UserInterface, TwoFactorInterface, EntityInterface +class User implements PasswordAuthenticatedUserInterface, UserInterface, TwoFactorInterface, EntityInterface { use Timestampable; /**