TwoFactorAuthenticationUser
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.
at line 19
array
recoveryCodes()
Get the two factor authentication recovery codes.
at line 24
bool
consumeRecoveryCode(string $code)
Consume the given recovery code if it is still valid.
at line 29
void
replaceRecoveryCode(string $code)
Replace the given recovery code with a new one.
at line 34
string
twoFactorQrCodeSvg()
Get the SVG element for the user's two factor authentication QR code.
at line 39
string
twoFactorQrCodeUrl()
Get the two factor authentication QR code URL.