Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions controller/csrf_token_validation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ method to check the validity of a CSRF token::

public function deleteAction()
{
// get the value of the $submittedToken from the request...

if ($this->isCsrfTokenValid('token_id', $submittedToken)) {
// ... do something, like deleting an object
}
Expand Down