Quantcast
Channel: CodeIgniter Forums - All Forums
Viewing all articles
Browse latest Browse all 14342

Community Auth Token Name

$
0
0
I am using Codeigniter 3 and Community Auth. My login was working fine until I recently turned off CI CSRF due to AJAX issues and I am now using the tokens helper.

All of my JQuery code references a specific token name, let's call it my_token. So I want to continue to use this token name versus Community Auth's default token name "token". I am using form_open() on my login form and I added a hidden element for my_token and I changed the Community Auth token name in /application/third_party/community_auth/config/authentication.php to "my_token".

When I try to log in nothing happens. When I check the log file, the submitted form token is not in the jar. I've tried several changes to get this to work, however it only works if I leave the token name as "token". Am I missing some other setting? My site is live so any help would be greatly appreciated.

DEBUG - 2018-01-18 01:57:52 -->
string = myusername
password = abc123
form_token = e03cc701
token_jar = {"0":"f0c0d018","1":"e1610819","2":"8e9a3ac9","3":"3fa0bedb","4":"35144229","5":"579e4e9d","6":"8097b9a7","7":"3330737d","8":"34814180","9":"2835bd8c","11":"7d232b67"}

Viewing all articles
Browse latest Browse all 14342

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>