added active and lastLogin properties
This commit is contained in:
		| @@ -101,6 +101,12 @@ class User implements UserInterface, PasswordAuthenticatedUserInterface | ||||
|     #[ORM\Column(type: Types::TEXT, nullable: true)] | ||||
|     private ?string $signature = null; | ||||
|  | ||||
|     #[ORM\Column] | ||||
|     private ?bool $active = null; | ||||
|  | ||||
|     #[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)] | ||||
|     private ?\DateTimeInterface $lastLogin = null; | ||||
|  | ||||
|     public function __construct() | ||||
|     { | ||||
|         $this->userCases = new ArrayCollection(); | ||||
| @@ -454,4 +460,28 @@ class User implements UserInterface, PasswordAuthenticatedUserInterface | ||||
|  | ||||
|         return $this; | ||||
|     } | ||||
|  | ||||
|     public function isActive(): ?bool | ||||
|     { | ||||
|         return $this->active; | ||||
|     } | ||||
|  | ||||
|     public function setActive(bool $active): static | ||||
|     { | ||||
|         $this->active = $active; | ||||
|  | ||||
|         return $this; | ||||
|     } | ||||
|  | ||||
|     public function getLastLogin(): ?\DateTimeInterface | ||||
|     { | ||||
|         return $this->lastLogin; | ||||
|     } | ||||
|  | ||||
|     public function setLastLogin(?\DateTimeInterface $lastLogin): static | ||||
|     { | ||||
|         $this->lastLogin = $lastLogin; | ||||
|  | ||||
|         return $this; | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user