Skip to content

Kohana 3.x module for validating a csrf token on forms

Notifications You must be signed in to change notification settings

isieo/kohana-csrf

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

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

<script type="text/javascript" src="/csrf/javascript/jquery.js"></script>

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

About

Kohana 3.x module for validating a csrf token on forms

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%