mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
dont set return url, if request method is not GET
This commit is contained in:

committed by
SilverFire - Dmitry Naumenko

parent
b4995c3990
commit
5bd35c344c
@ -431,6 +431,7 @@ class User extends Component
|
||||
$request = Yii::$app->getRequest();
|
||||
$canRedirect = !$checkAcceptHeader || $this->checkRedirectAcceptable();
|
||||
if ($this->enableSession
|
||||
&& $request->getIsGet()
|
||||
&& (!$checkAjax || !$request->getIsAjax())
|
||||
&& $canRedirect
|
||||
) {
|
||||
|
Reference in New Issue
Block a user