Class BeSecurityComponent
BeSecurityComponent class
Handle token to avoid CSFR attack
- Object
- BeSecurityComponent
Located at controllers/components/be_security.php
Methods summary
public
|
|
public
|
|
protected
|
|
protected
boolean
|
#
validateCsrf( )
Validate that the controller has a CSRF token in the POST data and that the token is legit/not expired |
Properties summary
public
array
|
$components
list of components used |
#
array('Session', 'RequestHandler')
|
public
Controller
|
$controller
the controller that use this component |
#
null
|
public
boolean
|
$validatePost
Whether to validate POST data. Set to false to disable for data coming from 3rd party services, etc. |
#
true
|
public
array
|
$disableActions
Controller actions on which csrf validation is disabled |
#
array()
|