Beispiel #1
0
function csrf()
{
    $csrfProtector = new CSRFProtector();
    return sysview('csrf', array('token' => $csrfProtector->createCsrf()));
}
Beispiel #2
0
 protected function isCsrfViolation(Guard $guard, $folder)
 {
     $csrfProtection = new CSRFProtector();
     return $guard->hasCsrfProtection($folder) && !$csrfProtection->validCSRF();
 }