mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Adding some documentation about token consumption.
This commit is contained in:
parent
a10f1478ee
commit
ac90916b84
1 changed files with 2 additions and 1 deletions
|
@ -715,7 +715,8 @@ class SecurityComponent extends Component {
|
|||
|
||||
/**
|
||||
* Validate that the controller has a CSRF token in the POST data
|
||||
* and that the token is legit/not expired.
|
||||
* and that the token is legit/not expired. If the token is valid
|
||||
* it will be removed from the list of valid tokens.
|
||||
*
|
||||
* @param Controller $controller A controller to check
|
||||
* @return boolean Valid csrf token.
|
||||
|
|
Loading…
Add table
Reference in a new issue