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'
SECTION
private
string
SECTION
= 'accountDeletion'
Properties
$session read-only
private
Session
$session
Methods
__construct()
public
__construct(Session $session) : mixed
Parameters
- $session : Session
clear()
public
clear() : void
getScheduledAt()
public
getScheduledAt() : DateTimeImmutable|null
Return values
DateTimeImmutable|nullgetTicket()
public
getTicket() : string|null
Return values
string|nullremember()
public
remember(string $ticket, string $scheduledAt) : void
Parameters
- $ticket : string
- $scheduledAt : string
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
boolgetSection()
private
getSection() : SessionSection