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