PHP Classes

File: demos/CSRF.php

Recommend this page to a friend!
  Classes of Francesco Danti   atk4 Security   demos/CSRF.php   Download  
File: demos/CSRF.php
Role: Example script
Content type: text/plain
Description: Example script
Class: atk4 Security
Perform security checks on ATK4 based applications
Author: By
Last change:
Date: 4 years ago
Size: 340 bytes
 

Contents

Class file image Download
<?php

declare(strict_types=1);

use
atk4\ui\Form;

require_once
'bootstrap.php';

$app->add($security = new Abbadon1334\ATKSecurity\ATKSecurity([
   
'intrusion_detection_check' => false,
]));

$app->add($form = new Form());
$form->setModel($model = new User($app->db));

$model->tryLoad(1);

$security->addFieldCSRF($form);

$app->run();