mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
PHRAS-3694 bin/maintenance clean:users finish (#4139)
* clean users * fix help * add usertype * relance user connection * unused option * test * send token to connect to phraseanet * add alpha on help * bump rc6, add alpha , fix input to integer Co-authored-by: jygaulier <gaulier@alchemy.fr>
This commit is contained in:
@@ -266,6 +266,16 @@ class User
|
||||
*/
|
||||
private $grantedApi = false;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="integer", name="nb_inactivity_email", options={"default" = 0})
|
||||
*/
|
||||
private $nbInactivityEmail = 0;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="datetime", name="last_inactivity_email", nullable=true)
|
||||
*/
|
||||
private $lastInactivityEmail;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
@@ -1078,6 +1088,36 @@ class User
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function setNbInactivityEmail($nbEnactivityEmail)
|
||||
{
|
||||
$this->nbInactivityEmail = $nbEnactivityEmail;
|
||||
}
|
||||
|
||||
public function getNbInactivityEmail()
|
||||
{
|
||||
return $this->nbInactivityEmail;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param \DateTime|null $lastInactivityEmail
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setLastInactivityEmail($lastInactivityEmail)
|
||||
{
|
||||
$this->lastInactivityEmail = $lastInactivityEmail;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \DateTime|null
|
||||
*/
|
||||
public function getLastInactivityEmail()
|
||||
{
|
||||
return $this->lastInactivityEmail;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return boolean
|
||||
*/
|
||||
|
Reference in New Issue
Block a user