Customize CSRF protection error messages in CodeIgniter

7

In% with%, if I give a reload F5 on a form's page, the CodeIgniter error is returned. A protection against The action you have requested is not allowed .

How do I customize the CSRF of this error message?

Instead of displaying a% error message, how do I use the HTML function and take the user to the home page?

    
asked by anonymous 26.06.2015 / 04:34

1 answer

1

The CSRF protection is in the CI_Security class, which is instantiated before the helpers and libs.

You can try to extend the class operation.

Maybe this will help: link

    
24.09.2016 / 01:50