dev-master
9999999-dev http://eve.openovate.comCSRF Plugin for the Eve Framework
MIT
The Requires
- php >=5.4.1
- eden/registry 4.*
by Christian Blanquera
plugin eve
CSRF Plugin for the Eve Framework
====, (*1)
composer install eve-php/eve-plugin-csrf
, (*3)
====, (*4)
//CSRF ->add(Eve\Plugin\Csrf\Setup::i()->import('1234567890'))
'1234567890'
is the escape key you use when writing tests for pages using this plugin., (*6)
'/product/create' => array( 'method' => 'ALL', 'make_csrf' => true, 'check_csrf' => true, 'class' => '\\Eve\\App\\Front\\Action\\Product\\Create' ),
In each form template add <input type="hidden" name="csrf" value="{{item.csrf}}" />
before the form tag., (*7)
Done ;), (*8)
CSRF Plugin for the Eve Framework
MIT
plugin eve