Fixes #15496: CSRF token is now regenerated on changing identity

This commit is contained in:
Alexander Makarov
2018-01-14 02:13:24 +03:00
committed by GitHub
parent 7adf3152cb
commit 6c0540aa2d
3 changed files with 6 additions and 0 deletions

View File

@ -29,6 +29,7 @@ class UrlTest extends TestCase
'components' => [
'request' => [
'class' => 'yii\web\Request',
'cookieValidationKey' => '123',
'scriptUrl' => '/base/index.php',
'hostInfo' => 'http://example.com/',
'url' => '/base/index.php&r=site%2Fcurrent&id=42',