Kohana 3.x module for validating a csrf token on forms
PHP
Pull request Compare This branch is 6 commits ahead, 7 commits behind synapsestudios:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
classes
views/csrf
README.md

README.md

CSRF

CSRF Helper for Kohana 3.x (Cross Site Request Forgery)

Description

The CSRF class will generate a token to use in forms, and provides a validation method to use as a rule CSRF::valid

To use jquery to automatically add csrf token in form, include the following in your header

to generate token use: getCSRFToken() javascript function (useful for ajax calls)