Welcome Guest, Not a member yet? Register   Sign In
Csrf not working sometimes
#2

(This post was last modified: 03-17-2023, 02:47 AM by captain-sensible. Edit Reason: forgot to add some points )

no idea but in a form this works for me :

Code:
<div class ="flex2">
    <div class ="content">
    <div class="d-flex justify-content-center">
            <?= form_open_multipart('newblog'); ?>
            <?= csrf_field() ?>

then the controller that accepts the data from the form , check with:

Code:
$lucky= $this->request->getVar(csrf_token());
I use Arch Linux by the way 

CMS in Action
Reply


Messages In This Thread
Csrf not working sometimes - by Uhrien - 03-16-2023, 08:37 AM
RE: Csrf not working sometimes - by captain-sensible - 03-17-2023, 02:45 AM
RE: Csrf not working sometimes - by Uhrien - 03-17-2023, 03:52 AM
RE: Csrf not working sometimes - by Uhrien - 03-17-2023, 07:30 AM
RE: Csrf not working sometimes - by kenjis - 03-17-2023, 07:52 PM



Theme © iAndrew 2016 - Forum software by © MyBB