feat: mise en page de la page "infos perso" et "gérer mes mots de passe"

This commit is contained in:
2026-03-27 00:56:50 +01:00
parent ba84b49134
commit 0e5351b7f4
15 changed files with 540 additions and 64 deletions

View File

@@ -3,6 +3,7 @@
namespace App\Entity;
use App\Repository\UserRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface;
@@ -66,6 +67,12 @@ class User implements UserInterface, PasswordAuthenticatedUserInterface
#[ORM\Column(length: 255)]
private ?string $firstName = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $photo = null;
#[ORM\Column(length: 20, nullable: true)]
private ?string $telephone = null;
public function getId(): ?Uuid
{
return $this->id;
@@ -275,4 +282,28 @@ class User implements UserInterface, PasswordAuthenticatedUserInterface
return $this;
}
public function getPhoto(): ?string
{
return $this->photo;
}
public function setPhoto(?string $photo): static
{
$this->photo = $photo;
return $this;
}
public function getTelephone(): ?string
{
return $this->telephone;
}
public function setTelephone(?string $telephone): static
{
$this->telephone = $telephone;
return $this;
}
}