Welcome Guest, Not a member yet? Register   Sign In
Community Auth Token Name
#1

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"}
Reply


Messages In This Thread
Community Auth Token Name - by reesethebeast - 01-17-2018, 07:17 PM
RE: Community Auth Token Name - by skunkbad - 01-18-2018, 12:27 AM
RE: Community Auth Token Name - by reesethebeast - 01-18-2018, 06:42 AM
RE: Community Auth Token Name - by reesethebeast - 01-18-2018, 08:14 AM
RE: Community Auth Token Name - by skunkbad - 01-18-2018, 09:04 AM
RE: Community Auth Token Name - by reesethebeast - 01-18-2018, 09:29 AM
RE: Community Auth Token Name - by reesethebeast - 01-18-2018, 09:46 AM
RE: Community Auth Token Name - by skunkbad - 01-18-2018, 12:13 PM
RE: Community Auth Token Name - by reesethebeast - 01-18-2018, 02:21 PM
RE: Community Auth Token Name - by reesethebeast - 01-18-2018, 11:18 PM
RE: Community Auth Token Name - by skunkbad - 01-18-2018, 11:38 PM
RE: Community Auth Token Name - by reesethebeast - 01-20-2018, 08:20 PM
RE: Community Auth Token Name - by skunkbad - 01-20-2018, 10:16 PM
RE: Community Auth Token Name - by reesethebeast - 01-21-2018, 06:17 AM
RE: Community Auth Token Name - by skunkbad - 01-21-2018, 10:51 AM



Theme © iAndrew 2016 - Forum software by © MyBB