summaryrefslogtreecommitdiff
path: root/app/Controller/OAuthController.php
diff options
context:
space:
mode:
authorkent1 <kent1@arscenic.info>2018-03-05 19:43:15 +0100
committerFrédéric Guillot <fred@kanboard.net>2018-03-05 10:43:15 -0800
commita991758e98fc614d35ec67ec904c78fa0ff6feeb (patch)
tree213a76e65fb8c66fdf4748026cc1f70e8d1253b8 /app/Controller/OAuthController.php
parentb4beace91c552a810cdac61e85f4a1b2904f0df2 (diff)
Redirect to original URL after oauth login
Diffstat (limited to 'app/Controller/OAuthController.php')
-rw-r--r--app/Controller/OAuthController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Controller/OAuthController.php b/app/Controller/OAuthController.php
index 7663ddcc..abd9b2e7 100644
--- a/app/Controller/OAuthController.php
+++ b/app/Controller/OAuthController.php
@@ -106,7 +106,7 @@ class OAuthController extends BaseController
protected function authenticate($providerName)
{
if ($this->authenticationManager->oauthAuthentication($providerName)) {
- $this->response->redirect($this->helper->url->to('DashboardController', 'show'));
+ $this->redirectAfterLogin();
} else {
$this->authenticationFailure(t('External authentication failed'));
}