Commit e0b206a3 by Klimov Paul

`\yii\authclient\AuthAction::defaultCancelUrl()` changed to use `yii\web\User::loginUrl`

parent 902a9972
......@@ -11,6 +11,7 @@ use yii\base\Action;
use yii\base\Exception;
use yii\base\InvalidConfigException;
use yii\base\NotSupportedException;
use yii\helpers\Url;
use yii\web\Response;
use yii\web\HttpException;
use yii\web\NotFoundHttpException;
......@@ -156,7 +157,7 @@ class AuthAction extends Action
*/
protected function defaultCancelUrl()
{
return Yii::$app->getRequest()->getAbsoluteUrl();
return Url::to(Yii::$app->getUser()->loginUrl);
}
/**
......
......@@ -4,7 +4,7 @@ Yii Framework 2 authclient extension Change Log
2.0.2 under development
-----------------------
- no changes in this release.
- Bug #6510: Fixed infinite redirect loop using default `\yii\authclient\AuthAction::cancelUrl` (klimov-paul)
2.0.1 December 07, 2014
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment