TwoFactorAuthenticatable
trait TwoFactorAuthenticatable
Methods
Determine if two-factor authentication has been enabled.
Get the user's two factor authentication recovery codes.
Consume the given recovery code if it is still valid.
Replace the given recovery code with a new one in the user's stored codes.
Dispatch the recovery code replaced event if listeners are registered.
Get the QR code SVG of the user's two factor authentication QR code URL.
Get the two factor authentication QR code URL.
Details
at line 28
bool
hasEnabledTwoFactorAuthentication()
Determine if two-factor authentication has been enabled.
at line 57
array
recoveryCodes()
Get the user's two factor authentication recovery codes.
at line 81
bool
consumeRecoveryCode(string $code)
Consume the given recovery code if it is still valid.
at line 137
void
replaceRecoveryCode(string $code)
Replace the given recovery code with a new one in the user's stored codes.
at line 145
protected void
dispatchRecoveryCodeReplacedEvent(string $code)
Dispatch the recovery code replaced event if listeners are registered.
at line 157
string
twoFactorQrCodeSvg()
Get the QR code SVG of the user's two factor authentication QR code URL.
at line 167
string
twoFactorQrCodeUrl()
Get the two factor authentication QR code URL.