Removed unnecessary token generation. We already have it.

This commit is contained in:
Alexander Makarov
2014-10-09 14:53:59 +04:00
parent 85a9887ae0
commit c489f8228d

View File

@ -1287,7 +1287,6 @@ class Request extends \yii\base\Request
$config['value'] = $token;
Yii::$app->getResponse()->getCookies()->add(new Cookie($config));
} else {
$token = Yii::$app->getSecurity()->generateRandomString();
Yii::$app->getSession()->set($this->csrfParam, $token);
}
return $token;