From 031e514e2f185f028a472194fe29d25a93759e2f Mon Sep 17 00:00:00 2001 From: Antonio Ramirez Date: Sun, 6 Aug 2017 15:27:07 +0200 Subject: [PATCH] fix routing bug --- src/User/Service/SocialNetworkAuthenticateService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/User/Service/SocialNetworkAuthenticateService.php b/src/User/Service/SocialNetworkAuthenticateService.php index 069bd71..bbdcc02 100644 --- a/src/User/Service/SocialNetworkAuthenticateService.php +++ b/src/User/Service/SocialNetworkAuthenticateService.php @@ -51,7 +51,7 @@ class SocialNetworkAuthenticateService implements ServiceInterface $account = $this->socialNetworkAccountQuery->whereClient($this->client)->one(); if (!$this->controller->module->enableRegistration && ($account === null || $account->user === null)) { Yii::$app->session->setFlash('danger', Yii::t('usuario', 'Registration on this website is disabled')); - $this->authAction->setSuccessUrl(Url::to(['/usr/security/login'])); + $this->authAction->setSuccessUrl(Url::to(['/user/security/login'])); return false; } @@ -59,7 +59,7 @@ class SocialNetworkAuthenticateService implements ServiceInterface $account = $this->createAccount(); if (!$account) { Yii::$app->session->setFlash('danger', Yii::t('usuario', 'Unable to create an account.')); - $this->authAction->setSuccessUrl(Url::to(['/usr/security/login'])); + $this->authAction->setSuccessUrl(Url::to(['/user/security/login'])); return false; }