Does Formo module for Kohana prevent CSRF? I haven’t seen any code (tokens etc.) form protecting forms against it. So, is there any built-in solution in Formo or I have to protect forms on my own?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Kohana has basic support for CSRF protection.
Check these links:
Docs: http://forum.kohanaframework.org/discussion/2052/csrf-helper/p1
Forum: http://kohanaframework.org/3.2/guide/api/Security#token
It basically means you have to put a token in your forms manually with
Security::token();Like this:
echo Form::hidden('csrf', Security::token());Then you can check the token where you handle the form via validation: