‪TYPO3CMS  ‪main
TYPO3\CMS\Core\FormProtection\DisabledFormProtection Class Reference
Inheritance diagram for TYPO3\CMS\Core\FormProtection\DisabledFormProtection:
TYPO3\CMS\Core\FormProtection\AbstractFormProtection TYPO3\CMS\Core\Security\BlockSerializationTrait

Public Member Functions

string generateToken ($formName, $action='', $formInstanceName='')
 
bool validateToken ($tokenId, $formName, $action='', $formInstanceName='')
 
 persistSessionToken ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Core\FormProtection\AbstractFormProtection
 clean ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Core\Security\BlockSerializationTrait
 __wakeup ()
 

Protected Member Functions

 retrieveSessionToken ()
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Core\FormProtection\AbstractFormProtection
string getSessionToken ()
 
string generateSessionToken ()
 
 createValidationErrorMessage ()
 

Additional Inherited Members

- ‪Protected Attributes inherited from ‪TYPO3\CMS\Core\FormProtection\AbstractFormProtection
Closure null $validationFailedCallback
 
string null $sessionToken
 

Detailed Description

This class is a dummy implementation of the form protection, which is used when no authentication is used.

Definition at line 22 of file DisabledFormProtection.php.

Member Function Documentation

◆ generateToken()

string TYPO3\CMS\Core\FormProtection\DisabledFormProtection::generateToken (   $formName,
  $action = '',
  $formInstanceName = '' 
)

Disable parent method

Parameters
string$formName
string$action
string$formInstanceName
Returns
‪string

Reimplemented from TYPO3\CMS\Core\FormProtection\AbstractFormProtection.

Definition at line 32 of file DisabledFormProtection.php.

◆ persistSessionToken()

TYPO3\CMS\Core\FormProtection\DisabledFormProtection::persistSessionToken ( )

Dummy implementation

Reimplemented from TYPO3\CMS\Core\FormProtection\AbstractFormProtection.

Definition at line 63 of file DisabledFormProtection.php.

◆ retrieveSessionToken()

TYPO3\CMS\Core\FormProtection\DisabledFormProtection::retrieveSessionToken ( )
protected

Dummy implementation

Reimplemented from TYPO3\CMS\Core\FormProtection\AbstractFormProtection.

Definition at line 55 of file DisabledFormProtection.php.

◆ validateToken()

bool TYPO3\CMS\Core\FormProtection\DisabledFormProtection::validateToken (   $tokenId,
  $formName,
  $action = '',
  $formInstanceName = '' 
)

Disable parent method. Always return TRUE.

Parameters
string$tokenId
string$formName
string$action
string$formInstanceName
Returns
‪bool

Reimplemented from TYPO3\CMS\Core\FormProtection\AbstractFormProtection.

Definition at line 47 of file DisabledFormProtection.php.