Expand user and allow everybody to register

Automatically login after registering
This commit is contained in:
Tim
2023-04-03 22:19:28 +02:00
parent 5be77eeba1
commit bf83e5aabd
8 changed files with 161 additions and 3 deletions

View File

@ -28,6 +28,12 @@ class User implements UserInterface, PasswordAuthenticatedUserInterface
#[ORM\Column]
private ?string $password = null;
#[ORM\Column(length: 255)]
private ?string $name = null;
#[ORM\Column(length: 255)]
private ?string $email = null;
public function getId(): ?int
{
return $this->id;
@ -97,4 +103,28 @@ class User implements UserInterface, PasswordAuthenticatedUserInterface
// If you store any temporary, sensitive data on the user, clear it here
// $this->plainPassword = null;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): self
{
$this->name = $name;
return $this;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(string $email): self
{
$this->email = $email;
return $this;
}
}