Welcome Guest, Not a member yet? Register   Sign In
csrf
#1

[eluser]nuclearmaker[/eluser]
how to change csrf ci_csrf_token name?
any idea?
#2

[eluser]CroNiX[/eluser]
Its not dynamic (it should be)

/system/libraries/Security.php

They're variables set at the top.
#3

[eluser]CroNiX[/eluser]
I did create an issue in the tracker for this if you care to vote for it.
http://codeigniter.uservoice.com/forums/...e-set-in-c
#4

[eluser]nuclearmaker[/eluser]
from Eric Banes

I like this idea. As a workaround you can do it manually now. In your controller just add:
Code:
$this->security->csrf_token_name = 'csrf_test';
$this->security->csrf_cookie_name = 'csrf_cookie_test';
$this->security->csrf_expire = 7200;
#5

[eluser]CroNiX[/eluser]
That was quick! Who says CI doesn't listen to the community?
#6

[eluser]nuclearmaker[/eluser]
Code:
$this->security->csrf_token_name = 'csrf_test';
$this->security->csrf_cookie_name = 'csrf_cookie_test';
$this->security->csrf_expire = 7200;

now,i have problem to post csrf_test in jquery
#7

[eluser]Cristian Gilè[/eluser]
or download the last source from: https://bitbucket.org/ellislab/codeigniter-reactor


Cristian Gilè




Theme © iAndrew 2016 - Forum software by © MyBB