CoolCMS API

AccountDeletionSessionManager
in package

FinalYes

Account deletion: keeps the cancel ticket of a sign-in refused because the account awaits deletion, between the login form (password / OAuth) and the "Account awaiting deletion" page. The ticket never goes into the HTML: the page posts a form and the component reads the ticket from here.

Table of Contents

Constants

EXPIRATION  : string = '30 minutes'
Same lifetime as the ticket itself ({@see \App\Core\Security\AccountDeletionTicket::TTL_SECONDS}).
SECTION  : string = 'accountDeletion'

Properties

$session  : Session

Methods

__construct()  : mixed
clear()  : void
getScheduledAt()  : DateTimeImmutable|null
getTicket()  : string|null
remember()  : void
rememberFromResult()  : bool
Stores the `data` of a `USER_DELETION_PENDING` answer; false = the answer carried no ticket.
getSection()  : SessionSection

Constants

EXPIRATION

Same lifetime as the ticket itself ({@see \App\Core\Security\AccountDeletionTicket::TTL_SECONDS}).

private string EXPIRATION = '30 minutes'

Properties

Methods

rememberFromResult()

Stores the `data` of a `USER_DELETION_PENDING` answer; false = the answer carried no ticket.

public rememberFromResult(mixed $data) : bool
Parameters
$data : mixed

Result::getData() of the refused sign-in

Return values
bool
On this page

Search results