aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Entity/User.php
diff options
context:
space:
mode:
authorJeremy <jeremy.benoist@gmail.com>2015-03-07 23:25:36 +0100
committerJeremy <jeremy.benoist@gmail.com>2015-03-08 07:35:24 +0100
commit6894d48e03c397096bb64420373afa60c397fe97 (patch)
tree0deb201b05b6aea527abc82ba7989732c4afbdb9 /src/Wallabag/CoreBundle/Entity/User.php
parentf37d1427a1b75f9d7a2e273b2e9fb0e895a769ab (diff)
downloadwallabag-6894d48e03c397096bb64420373afa60c397fe97.tar.gz
wallabag-6894d48e03c397096bb64420373afa60c397fe97.tar.zst
wallabag-6894d48e03c397096bb64420373afa60c397fe97.zip
Handle forgot password
Diffstat (limited to 'src/Wallabag/CoreBundle/Entity/User.php')
-rw-r--r--src/Wallabag/CoreBundle/Entity/User.php56
1 files changed, 56 insertions, 0 deletions
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
@@ -78,6 +78,16 @@ class User implements AdvancedUserInterface, \Serializable
78 private $isActive = true; 78 private $isActive = true;
79 79
80 /** 80 /**
81 * @ORM\Column(name="confirmation_token", type="string", nullable=true)
82 */
83 private $confirmationToken;
84
85 /**
86 * @ORM\Column(name="password_requested_at", type="datetime", nullable=true)
87 */
88 private $passwordRequestedAt;
89
90 /**
81 * @var date 91 * @var date
82 * 92 *
83 * @ORM\Column(name="created_at", type="datetime") 93 * @ORM\Column(name="created_at", type="datetime")
@@ -377,4 +387,50 @@ class User implements AdvancedUserInterface, \Serializable
377 { 387 {
378 return $this->config; 388 return $this->config;
379 } 389 }
390
391 /**
392 * Set confirmationToken
393 *
394 * @param string $confirmationToken
395 * @return User
396 */
397 public function setConfirmationToken($confirmationToken)
398 {
399 $this->confirmationToken = $confirmationToken;
400
401 return $this;
402 }
403
404 /**
405 * Get confirmationToken
406 *
407 * @return string
408 */
409 public function getConfirmationToken()
410 {
411 return $this->confirmationToken;
412 }
413
414 /**
415 * Set passwordRequestedAt
416 *
417 * @param \DateTime $passwordRequestedAt
418 * @return User
419 */
420 public function setPasswordRequestedAt($passwordRequestedAt)
421 {
422 $this->passwordRequestedAt = $passwordRequestedAt;
423
424 return $this;
425 }
426
427 /**
428 * Get passwordRequestedAt
429 *
430 * @return \DateTime
431 */
432 public function getPasswordRequestedAt()
433 {
434 return $this->passwordRequestedAt;
435 }
380} 436}