src/Core/Security/CsrfGuard.php
public function validate($justDie = false, $message = 'Invalid Token')
    {
        if (!$this->checkToken()) {
            if ($justDie) {
                exit($message);
            }

            throw new InvalidTokenException($message);
        }

        return true;
    }
public function validate($justDie = false, $message = 'Invalid Token')
    {
        if (!$this->checkToken()) {
            if ($justDie) {
                exit($message);
            }

            throw new InvalidTokenException($message);
        }

        return true;
    }
public function validate ( $ justDie = false , $ message = 'Invalid Token' ) { if ( ! $ this -> checkToken ( ) ) { if ( $ justDie ) { exit ( $ message ) ; } throw new InvalidTokenException ( $ message ) ; } return true ; }
Validate token or die.

@param   bool   $justDie
@param   string $message

@return  bool
Validate token or die .