trait InteractsWithTwoFactorState mixin FormRequest

Methods

void
ensureStateIsValid()

Ensure the two-factor authentication state is valid and handle transitions.

bool
hasJustBegunConfirmingTwoFactorAuthentication()

Determine if two-factor authentication is just now being confirmed within the last request cycle.

bool
neverFinishedConfirmingTwoFactorAuthentication(int $currentTime)

Determine if two-factor authentication was never totally confirmed once confirmation started.

Details

at line 18
void ensureStateIsValid()

Ensure the two-factor authentication state is valid and handle transitions.

Return Value

void

at line 45
protected bool hasJustBegunConfirmingTwoFactorAuthentication()

Determine if two-factor authentication is just now being confirmed within the last request cycle.

Return Value

bool

at line 56
protected bool neverFinishedConfirmingTwoFactorAuthentication(int $currentTime)

Determine if two-factor authentication was never totally confirmed once confirmation started.

Parameters

int $currentTime

Return Value

bool