diff options
| author | Frederic Guillot <fred@kanboard.net> | 2016-05-16 20:55:21 -0400 |
|---|---|---|
| committer | Frederic Guillot <fred@kanboard.net> | 2016-05-16 20:55:21 -0400 |
| commit | 4514bc1d4b4abff23902e46da76e70f13a3647eb (patch) | |
| tree | fb4f03d47f49bd8acc6fbae943ac44ac58df9540 /app/Controller/Twofactor.php | |
| parent | abdf6f97800e7e838b5841820815385b183bab67 (diff) | |
Improve user controllers and views
Diffstat (limited to 'app/Controller/Twofactor.php')
| -rw-r--r-- | app/Controller/Twofactor.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Controller/Twofactor.php b/app/Controller/Twofactor.php index 2eb61594..118613b2 100644 --- a/app/Controller/Twofactor.php +++ b/app/Controller/Twofactor.php @@ -10,7 +10,7 @@ use Kanboard\Core\Controller\AccessForbiddenException; * @package controller * @author Frederic Guillot */ -class Twofactor extends User +class Twofactor extends UserViewController { /** * Only the current user can access to 2FA settings @@ -192,7 +192,7 @@ class Twofactor extends User 'twofactor_secret' => '', )); - return $this->response->redirect($this->helper->url->to('user', 'show', array('user_id' => $user['id']))); + return $this->response->redirect($this->helper->url->to('UserViewController', 'show', array('user_id' => $user['id']))); } return $this->response->html($this->helper->layout->user('twofactor/disable', array( |
