summaryrefslogtreecommitdiff
path: root/app/Controller
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-12-17 13:39:03 -0500
committerFrederic Guillot <fred@kanboard.net>2016-12-17 13:39:03 -0500
commitddeb89e2c6622f197d1b7738042182b34d5054ed (patch)
treee7c473b9753d8ce309ec73f40c9eef62b2b9cc81 /app/Controller
parentaafa1de4d56b0791c4d367aa530587082c833faf (diff)
Add cache decorator for UserModel
Diffstat (limited to 'app/Controller')
-rw-r--r--app/Controller/PasswordResetController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Controller/PasswordResetController.php b/app/Controller/PasswordResetController.php
index a1780ed9..6189f946 100644
--- a/app/Controller/PasswordResetController.php
+++ b/app/Controller/PasswordResetController.php
@@ -109,7 +109,7 @@ class PasswordResetController extends BaseController
$token = $this->passwordResetModel->create($username);
if ($token !== false) {
- $user = $this->userModel->getByUsername($username);
+ $user = $this->userCacheDecorator->getByUsername($username);
$this->emailClient->send(
$user['email'],