yii\web\Request::cookieValidationKey
is now automatically generated by the installation script for the basic and advanced application templates
This commit is contained in:
parent
539a6f0c59
commit
fb1d9fa32a
@ -31,7 +31,8 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"post-create-project-cmd": [
|
"post-create-project-cmd": [
|
||||||
"yii\\composer\\Installer::setPermission"
|
"yii\\composer\\Installer::setPermission",
|
||||||
|
"yii\\composer\\Installer::generateCookieValidationKey"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"config": {
|
"config": {
|
||||||
@ -44,6 +45,9 @@
|
|||||||
],
|
],
|
||||||
"executable": [
|
"executable": [
|
||||||
"yii"
|
"yii"
|
||||||
|
],
|
||||||
|
"config": [
|
||||||
|
"config/web.php"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7,6 +7,10 @@ $config = [
|
|||||||
'basePath' => dirname(__DIR__),
|
'basePath' => dirname(__DIR__),
|
||||||
'bootstrap' => ['log'],
|
'bootstrap' => ['log'],
|
||||||
'components' => [
|
'components' => [
|
||||||
|
'request' => [
|
||||||
|
// a secret key used to validate cookies. You may modify this key with your own one.
|
||||||
|
'cookieValidationKey' => '',
|
||||||
|
],
|
||||||
'cache' => [
|
'cache' => [
|
||||||
'class' => 'yii\caching\FileCache',
|
'class' => 'yii\caching\FileCache',
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user