![]() |
TYPO3
7.6
|
Public Member Functions | |
__construct (FrontendUserAuthentication $frontendUser,\Closure $validationFailedCallback=null) | |
persistSessionToken () | |
![]() | |
__destruct () | |
clean () | |
generateToken ($formName, $action= '', $formInstanceName= '') | |
validateToken ($tokenId, $formName, $action= '', $formInstanceName= '') | |
persistSessionToken () | |
Protected Member Functions | |
retrieveSessionToken () | |
isAuthorizedFrontendSession () | |
![]() | |
getSessionToken () | |
generateSessionToken () | |
createValidationErrorMessage () | |
retrieveSessionToken () | |
Protected Attributes | |
$frontendUser | |
![]() | |
$validationFailedCallback | |
$sessionToken | |
Frontend form protection
Definition at line 74 of file FrontendFormProtection.php.
__construct | ( | FrontendUserAuthentication | $frontendUser, |
\Closure | $validationFailedCallback = null |
||
) |
Only allow construction if we have an authorized frontend session
FrontendUserAuthentication | $frontendUser | |
\Closure | $validationFailedCallback |
\TYPO3\CMS\Core\Error\Exception |
Definition at line 91 of file FrontendFormProtection.php.
References FrontendFormProtection\$frontendUser, AbstractFormProtection\$validationFailedCallback, and FrontendFormProtection\isAuthorizedFrontendSession().
|
protected |
Checks if a user is logged in and the session is active.
Definition at line 132 of file FrontendFormProtection.php.
Referenced by FrontendFormProtection\__construct().
persistSessionToken | ( | ) |
Saves the tokens so that they can be used by a later incarnation of this class.
private
Definition at line 122 of file FrontendFormProtection.php.
Referenced by FrontendFormProtection\retrieveSessionToken().
|
protected |
Retrieves the saved session token or generates a new one.
Definition at line 105 of file FrontendFormProtection.php.
References AbstractFormProtection\$sessionToken, AbstractFormProtection\generateSessionToken(), and FrontendFormProtection\persistSessionToken().
|
protected |
Definition at line 82 of file FrontendFormProtection.php.
Referenced by FrontendFormProtection\__construct().