CSRF and Browser Cookie Settings |
(11-18-2017, 12:43 PM)skunkbad Wrote:(11-18-2017, 10:16 AM)reesethebeast Wrote: Thanks Skunkbad, I actually already use Community Auth on my site for autentication. I see that the Token class is present (Form Tokens Library - V1.0.2). I will give this a try. Thanks Skunkbad. I turned off CSRF and I can see the Community Auth token in my form. I added a check in MY_Controller for the token match and if not matched, I redirect back to the original page. The check is always returning a non match. Code: if($this->tokens->match) Once this is working I will need to change all of my AJAX code to look for "token" versus the Codeigniter token name from the config file. Is there a cay to rename the Community auth token so I can use what I defined in the config.php file? This way I can leave this reference as is and just add $this->tokens->token(); to my AJAX code? |
Welcome Guest, Not a member yet? Register Sign In |