change backand request csrf settings
This commit is contained in:
parent
ed80f8720d
commit
17a339badf
@ -14,17 +14,28 @@ return [
|
|||||||
'bootstrap' => ['log'],
|
'bootstrap' => ['log'],
|
||||||
'modules' => [],
|
'modules' => [],
|
||||||
'components' => [
|
'components' => [
|
||||||
|
'request' => [
|
||||||
|
'csrfParam' => '_backendCSRF',
|
||||||
|
'csrfCookie' => [
|
||||||
|
'httpOnly' => true,
|
||||||
|
'path' => '/backend/web',
|
||||||
|
],
|
||||||
|
],
|
||||||
'user' => [
|
'user' => [
|
||||||
'identityClass' => 'common\models\User',
|
'identityClass' => 'common\models\User',
|
||||||
'enableAutoLogin' => true,
|
'enableAutoLogin' => true,
|
||||||
'identityCookie' => [
|
'identityCookie' => [
|
||||||
'name' => '_backendUser', // unique for backend
|
'name' => '_backendUser', // unique for backend
|
||||||
'path'=>'/backend/web' // correct path for the backend app.
|
'path'=>'/backend/web', // correct path for the backend app.
|
||||||
|
'httpOnly' => true,
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
'session' => [
|
'session' => [
|
||||||
'name' => '_backendSessionId', // unique for backend
|
'name' => '_backendSessionId', // unique for backend
|
||||||
'savePath' => __DIR__ . '/../runtime', // a temporary folder on backend
|
'savePath' => __DIR__ . '/../runtime', // a temporary folder on backend
|
||||||
|
'cookieParams' => [
|
||||||
|
'path' => '/backend/web',
|
||||||
|
],
|
||||||
],
|
],
|
||||||
'log' => [
|
'log' => [
|
||||||
'traceLevel' => YII_DEBUG ? 3 : 0,
|
'traceLevel' => YII_DEBUG ? 3 : 0,
|
||||||
|
|||||||
@ -3,5 +3,5 @@ return [
|
|||||||
'adminEmail' => 'rocho02@gmail.com',
|
'adminEmail' => 'rocho02@gmail.com',
|
||||||
'supportEmail' => 'rocho02@gmail.com',
|
'supportEmail' => 'rocho02@gmail.com',
|
||||||
'user.passwordResetTokenExpire' => 3600,
|
'user.passwordResetTokenExpire' => 3600,
|
||||||
'version' => 'v0.0.4'
|
'version' => 'v0.0.5'
|
||||||
];
|
];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user