CoolCMS API

FormTrait

Table of Contents

Methods

onSuccess()  : void
createComponentPasswordForm()  : Form
redirectAfterSuccess()  : void
resolveErrorMessage()  : string
storeRenewedTokens()  : void
The Api revoked every refresh token of the account, including the one this session holds, and answered with a fresh pair. Without storing it the visitor would be signed out as soon as the current access token expires.

Methods

onSuccess()

public onSuccess(Form $form, ArrayHash $values) : void
Parameters
$form : Form
$values : ArrayHash

createComponentPasswordForm()

protected createComponentPasswordForm() : Form
Return values
Form

redirectAfterSuccess()

private redirectAfterSuccess() : void

resolveErrorMessage()

private resolveErrorMessage(Result $result) : string
Parameters
$result : Result
Return values
string

storeRenewedTokens()

The Api revoked every refresh token of the account, including the one this session holds, and answered with a fresh pair. Without storing it the visitor would be signed out as soon as the current access token expires.

private storeRenewedTokens(Result $result) : void
Parameters
$result : Result
On this page

Search results