mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-03 22:32:40 +08:00
\yii\authclient\AuthAction::defaultCancelUrl() changed to use yii\web\User::loginUrl
This commit is contained in:
@ -11,6 +11,7 @@ use yii\base\Action;
|
|||||||
use yii\base\Exception;
|
use yii\base\Exception;
|
||||||
use yii\base\InvalidConfigException;
|
use yii\base\InvalidConfigException;
|
||||||
use yii\base\NotSupportedException;
|
use yii\base\NotSupportedException;
|
||||||
|
use yii\helpers\Url;
|
||||||
use yii\web\Response;
|
use yii\web\Response;
|
||||||
use yii\web\HttpException;
|
use yii\web\HttpException;
|
||||||
use yii\web\NotFoundHttpException;
|
use yii\web\NotFoundHttpException;
|
||||||
@ -156,7 +157,7 @@ class AuthAction extends Action
|
|||||||
*/
|
*/
|
||||||
protected function defaultCancelUrl()
|
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
|
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
|
2.0.1 December 07, 2014
|
||||||
|
|||||||
Reference in New Issue
Block a user