aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Entity/User.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2015-03-30 17:05:37 +0200
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2015-03-30 17:05:37 +0200
commitf98a2a0fc3ae8a5955bb811f083c3d2535f96791 (patch)
tree386ecf0a54bdf904225182e0d2f63ced417b32c5 /src/Wallabag/CoreBundle/Entity/User.php
parentbdf2add2e80dc52a02113c50636b5f887639b31a (diff)
parentd0c2243b1099303be961c9d4b33eaaa95e663bef (diff)
downloadwallabag-f98a2a0fc3ae8a5955bb811f083c3d2535f96791.tar.gz
wallabag-f98a2a0fc3ae8a5955bb811f083c3d2535f96791.tar.zst
wallabag-f98a2a0fc3ae8a5955bb811f083c3d2535f96791.zip
Merge pull request #1152 from wallabag/v2-forgot-password
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}