Welcome Guest, Not a member yet? Register   Sign In
Facing a Forbidden issue
#6

The problem seems to be the data in the AJAX request does not contain the csrf field.

Your code:
Code:
data: {'email':email,'password':password,'remember':remember},

To capture all the inputs from the <form> in the easiest way use this.
PHP Code:
data: $('#login').serializeArray(); 

Question: Is this the setting in your config.php?
PHP Code:
$config['csrf_token_name'] = 'csrf_test_name'

If not your hidden field is not correct either.
Reply


Messages In This Thread
Facing a Forbidden issue - by jyoti sudyal - 02-22-2018, 12:09 AM
RE: Facing a Forbidden issue - by InsiteFX - 02-22-2018, 05:20 AM
RE: Facing a Forbidden issue - by jyoti sudyal - 02-22-2018, 05:50 AM
RE: Facing a Forbidden issue - by dave friend - 02-22-2018, 08:39 AM
RE: Facing a Forbidden issue - by jyoti sudyal - 02-22-2018, 10:29 PM
RE: Facing a Forbidden issue - by dave friend - 02-23-2018, 08:54 AM
RE: Facing a Forbidden issue - by jyoti sudyal - 02-25-2018, 10:14 PM



Theme © iAndrew 2016 - Forum software by © MyBB