Neos\Flow\Security\DummyContext::isCsrfProtectionTokenValid PHP Method

isCsrfProtectionTokenValid() public method

Returns TRUE if the given string is a valid CSRF protection token. The token will be removed if the configured csrf strategy is 'onePerUri'.
public isCsrfProtectionTokenValid ( string $csrfToken ) : boolean
$csrfToken string The token string to be validated
return boolean TRUE, if the token is valid. FALSE otherwise.
    public function isCsrfProtectionTokenValid($csrfToken)
    {
        return $csrfToken === $this->csrfProtectionToken;
    }