- Ajout du hashage du mot de passe lors de l'inscription.
This commit is contained in:
@ -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.
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user