- Ajout du hashage du mot de passe lors de l'inscription.

This commit is contained in:
2025-01-29 10:42:03 +01:00
parent 45362ae9d9
commit d576c980d3
4 changed files with 210 additions and 9 deletions

View File

@ -4,9 +4,12 @@ namespace App\Entity;
use App\Repository\UserRepository;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface;
use Symfony\Component\Security\Core\User\UserInterface;
#[ORM\Entity(repositoryClass: UserRepository::class)]
class User
class User implements UserInterface, PasswordAuthenticatedUserInterface
{
#[ORM\Id]
#[ORM\GeneratedValue]
@ -92,4 +95,24 @@ class User
return $this;
}
public function getSalt(): ?string
{
return null;
}
public function getRoles(): array
{
// TODO: Implement getRoles() method.
}
public function eraseCredentials(): void
{
// TODO: Implement eraseCredentials() method.
}
public function getUserIdentifier(): string
{
// TODO: Implement getUserIdentifier() method.
}
}