interface TwoFactorAuthenticationUser

Methods

bool
hasEnabledTwoFactorAuthentication()

Determine if two-factor authentication has been enabled.

array
recoveryCodes()

Get the two factor authentication recovery codes.

bool
consumeRecoveryCode(string $code)

Consume the given recovery code if it is still valid.

void
replaceRecoveryCode(string $code)

Replace the given recovery code with a new one.

string
twoFactorQrCodeSvg()

Get the SVG element for the user's two factor authentication QR code.

string
twoFactorQrCodeUrl()

Get the two factor authentication QR code URL.

Details

at line 12
bool hasEnabledTwoFactorAuthentication()

Determine if two-factor authentication has been enabled.

Return Value

bool

at line 19
array recoveryCodes()

Get the two factor authentication recovery codes.

Return Value

array

at line 24
bool consumeRecoveryCode(string $code)

Consume the given recovery code if it is still valid.

Parameters

string $code

Return Value

bool

at line 29
void replaceRecoveryCode(string $code)

Replace the given recovery code with a new one.

Parameters

string $code

Return Value

void

at line 34
string twoFactorQrCodeSvg()

Get the SVG element for the user's two factor authentication QR code.

Return Value

string

at line 39
string twoFactorQrCodeUrl()

Get the two factor authentication QR code URL.

Return Value

string