Redirect to original URL after oauth login

This commit is contained in:
kent1
2018-03-05 19:43:15 +01:00
committed by Frédéric Guillot
parent b4beace91c
commit a991758e98
3 changed files with 17 additions and 17 deletions

View File

@@ -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'));
}