Skip to content

Commit

Permalink
Reword warning
Browse files Browse the repository at this point in the history
  • Loading branch information
garas committed Sep 19, 2018
1 parent 0c2fb5c commit cc180df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Controller/Component/CsrfComponent.php
Expand Up @@ -70,7 +70,8 @@ class CsrfComponent extends Component
public function initialize(array $config)
{
if ($this->getController()->getRequest()->getParam('_csrfToken') !== false) {
deprecationWarning('CSRF token already defined. Disable CsrfComponent if you use CsrfProtectionMiddleware.');
deprecationWarning('Loading CsrfComponent while CsrfProtectionMiddleware is active ' .
'will corrupt CSRF data and form submitting will fail.');
}
}

Expand Down

0 comments on commit cc180df

Please sign in to comment.