From 6894d48e03c397096bb64420373afa60c397fe97 Mon Sep 17 00:00:00 2001 From: Jeremy Date: Sat, 7 Mar 2015 23:25:36 +0100 Subject: Handle forgot password --- src/Wallabag/CoreBundle/Entity/User.php | 56 +++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) (limited to 'src/Wallabag/CoreBundle/Entity') diff --git a/src/Wallabag/CoreBundle/Entity/User.php b/src/Wallabag/CoreBundle/Entity/User.php index f05c8760..6a7619ac 100644 --- a/src/Wallabag/CoreBundle/Entity/User.php +++ b/src/Wallabag/CoreBundle/Entity/User.php @@ -77,6 +77,16 @@ class User implements AdvancedUserInterface, \Serializable */ private $isActive = true; + /** + * @ORM\Column(name="confirmation_token", type="string", nullable=true) + */ + private $confirmationToken; + + /** + * @ORM\Column(name="password_requested_at", type="datetime", nullable=true) + */ + private $passwordRequestedAt; + /** * @var date * @@ -377,4 +387,50 @@ class User implements AdvancedUserInterface, \Serializable { return $this->config; } + + /** + * Set confirmationToken + * + * @param string $confirmationToken + * @return User + */ + public function setConfirmationToken($confirmationToken) + { + $this->confirmationToken = $confirmationToken; + + return $this; + } + + /** + * Get confirmationToken + * + * @return string + */ + public function getConfirmationToken() + { + return $this->confirmationToken; + } + + /** + * Set passwordRequestedAt + * + * @param \DateTime $passwordRequestedAt + * @return User + */ + public function setPasswordRequestedAt($passwordRequestedAt) + { + $this->passwordRequestedAt = $passwordRequestedAt; + + return $this; + } + + /** + * Get passwordRequestedAt + * + * @return \DateTime + */ + public function getPasswordRequestedAt() + { + return $this->passwordRequestedAt; + } } -- cgit v1.2.3