DisabledFormProtection extends AbstractFormProtection

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

Table of Contents

Properties

$sessionToken  : string|null
The session token which is used to be hashed during token generation.
$validationFailedCallback  : Closure|null

Methods

__wakeup()  : mixed
Deny object deserialization.
clean()  : mixed
Deletes the session token and persists the (empty) token.
generateToken()  : string
Disable parent method
persistSessionToken()  : mixed
Dummy implementation
validateToken()  : bool
Disable parent method.
createValidationErrorMessage()  : mixed
Creates or displays an error message telling the user that the submitted form token is invalid.
generateSessionToken()  : string
Generates the random token which is used in the hash for the form tokens.
getSessionToken()  : string
retrieveSessionToken()  : string
Dummy implementation

Properties

$sessionToken

The session token which is used to be hashed during token generation.

protected string|null $sessionToken

$validationFailedCallback

protected Closure|null $validationFailedCallback

Methods

__wakeup()

Deny object deserialization.

public __wakeup() : mixed

clean()

Deletes the session token and persists the (empty) token.

public clean() : mixed

This function is intended to be called when a user logs on or off.

generateToken()

Disable parent method

public generateToken(string $formName[, string $action = '' ][, string $formInstanceName = '' ]) : string
Parameters
$formName : string
$action : string = ''
$formInstanceName : string = ''
Return values
string

persistSessionToken()

Dummy implementation

public persistSessionToken() : mixed

validateToken()

Disable parent method.

public validateToken(string $tokenId, string $formName[, string $action = '' ][, string $formInstanceName = '' ]) : bool

Always return TRUE.

Parameters
$tokenId : string
$formName : string
$action : string = ''
$formInstanceName : string = ''
Return values
bool

createValidationErrorMessage()

Creates or displays an error message telling the user that the submitted form token is invalid.

protected createValidationErrorMessage() : mixed

generateSessionToken()

Generates the random token which is used in the hash for the form tokens.

protected generateSessionToken() : string
Return values
string

getSessionToken()

protected getSessionToken() : string
Return values
string

retrieveSessionToken()

Dummy implementation

protected retrieveSessionToken() : string
Return values
string

        
On this page

Search results