Inexplicable CSRF Error |
I'm pulling my hair out trying to figure out why CI is not matching my CSRF token value. What else could cause this error? (error is equal to "old"). What does that mean? I've got a hidden csrf field and value in my view's form with method="post". Why would it not match the one CI is looking for? I've a zillion pages with forms like this. All of the others work as expected. Usually when I get the "The action you requested is not allowed" error is because I forgot to add
PHP Code: <?= csrf_field() ?> Code: Session User Data
Simpler is always better
I've got it working now but I don't know what I did to fix it. There was some other what I believe to be unrelated bugs I fixed and then it started working as expected.
I think it was an issue peculiar to Safari. It somehow matches my emails with my time restricted onetime passcode field and auto populates the field in my form for me.. I just have to click the little blue popup field next the form's passcode field in the browser. It must use the name and/or label of the passcode field and scrapes my email to hook it all together?
Simpler is always better
|
Welcome Guest, Not a member yet? Register Sign In |