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/Oauth.php | |
| parent | abdf6f97800e7e838b5841820815385b183bab67 (diff) | |
Improve user controllers and views
Diffstat (limited to 'app/Controller/Oauth.php')
| -rw-r--r-- | app/Controller/Oauth.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Controller/Oauth.php b/app/Controller/Oauth.php index c38654be..04adf154 100644 --- a/app/Controller/Oauth.php +++ b/app/Controller/Oauth.php @@ -49,7 +49,7 @@ class Oauth extends BaseController $this->link($provider); } else { $this->flash->failure(t('The OAuth2 state parameter is invalid')); - $this->response->redirect($this->helper->url->to('user', 'external', array('user_id' => $this->userSession->getId()))); + $this->response->redirect($this->helper->url->to('UserViewController', 'external', array('user_id' => $this->userSession->getId()))); } } else { if ($hasValidState) { @@ -75,7 +75,7 @@ class Oauth extends BaseController $this->flash->success(t('Your external account is linked to your profile successfully.')); } - $this->response->redirect($this->helper->url->to('user', 'external', array('user_id' => $this->userSession->getId()))); + $this->response->redirect($this->helper->url->to('UserViewController', 'external', array('user_id' => $this->userSession->getId()))); } /** @@ -94,7 +94,7 @@ class Oauth extends BaseController $this->flash->failure(t('Unable to unlink your external account.')); } - $this->response->redirect($this->helper->url->to('user', 'external', array('user_id' => $this->userSession->getId()))); + $this->response->redirect($this->helper->url->to('UserViewController', 'external', array('user_id' => $this->userSession->getId()))); } /** |
