User management - Login and user password hash.

This commit is contained in:
2024-04-26 21:37:39 +02:00
parent 30773d7af4
commit 84d9c81afd
7 changed files with 230 additions and 8 deletions
+18
View File
@@ -32,6 +32,11 @@ class User implements UserInterface, PasswordAuthenticatedUserInterface
#[ORM\Column]
private ?string $password = null;
/**
* @var string Store unhashed user password on user creation/edit.
*/
private ?string $plainPassword = null;
public function getId(): ?int
{
return $this->id;
@@ -98,6 +103,19 @@ class User implements UserInterface, PasswordAuthenticatedUserInterface
return $this;
}
public function getPlainPassword(): string
{
return $this->plainPassword;
}
public function setPlainPassword(string $plainPassword): static
{
$this->plainPassword = $plainPassword;
return $this;
}
/**
* @see UserInterface
*/