Fixes #4425: generate cookie validation keys in local config files.

This commit is contained in:
Qiang Xue
2014-08-01 15:00:15 -04:00
parent 2a8ca600c5
commit 066989f0b0
9 changed files with 181 additions and 128 deletions

View File

@ -1,6 +1,13 @@
<?php
$config = [];
$config = [
'components' => [
'request' => [
// !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
'cookieValidationKey' => '',
],
],
];
if (!YII_ENV_TEST) {
// configuration adjustments for 'dev' environment