Two-Factor Authentication

Add an extra layer of security to your account by enabling two-factor authentication.

@if($successMessage)

{{ $successMessage }}

@endif @if($errorMessage)

{{ $errorMessage }}

@endif
@if($hasTwoFactor)

Two-Factor Authentication Enabled

Your account is protected with {{ ucfirst($currentTwoFactorMethod) }} two-factor authentication.

@if($recoveryCodesCount > 0)

Recovery Codes

You have {{ $recoveryCodesCount }} recovery codes remaining.

@if($areRecoveryCodesVisible && !empty($recoveryCodes))
Your Recovery Codes
@foreach($recoveryCodes as $code) {{ $code }} @endforeach

Store these codes in a safe place. You can use them to access your account if you lose your authenticator device.

@endif
@endif
@elseif($recoveryCodesCount > 0 && !$skipRecoveryNotice)

Recovery Codes Available

You have recovery codes from a previous setup. You can view them or complete your 2FA setup.

Recovery Codes

You have {{ $recoveryCodesCount }} recovery codes available.

@if($areRecoveryCodesVisible && !empty($recoveryCodes))
Your Recovery Codes
@foreach($recoveryCodes as $code) {{ $code }} @endforeach

Store these codes in a safe place. You can use them to access your account if you lose your authenticator device.

@endif
@else @if($step === 'method')

Choose Your Two-Factor Authentication Method

Select how you'd like to receive your verification codes.

Azure MFA (Automatic)

@if(auth()->user()->microsoft_id && auth()->user()->microsoft_connected_at) ✅ You're using Microsoft login with Azure MFA protection @else Sign in with Microsoft to get automatic Azure MFA protection @endif

@elseif($step === 'setup')

Setup {{ ucfirst($twoFactorMethod) }} Two-Factor Authentication

@if($twoFactorMethod === 'totp') Scan the QR code with your authenticator app. @elseif($twoFactorMethod === 'sms') Enter your phone number to receive SMS codes. @else We'll send verification codes to your email address. @endif

@if($twoFactorMethod === 'sms')
@error('phoneNumber') {{ $message }} @enderror
@endif
@elseif($step === 'verify')

Verify Your Setup

@if($twoFactorMethod === 'totp') Enter the 6-digit code from your authenticator app. @elseif($twoFactorMethod === 'sms') Enter the 6-digit code sent to your phone. @else Enter the 6-digit code sent to your email. @endif

@if($twoFactorMethod === 'totp' || !empty($qrCode))

Scan QR Code

{!! $qrCode !!}
Can't see the QR? Show image fallback TOTP QR

Or enter this code manually:

{{ $secret }}
@if(!empty($recoveryCodes))

Recovery Codes Generated

Store these recovery codes in a safe place. You can use them to access your account if you lose your authenticator device.

@foreach($recoveryCodes as $code) {{ $code }} @endforeach
@endif @endif
@error('verificationCode') {{ $message }} @enderror
@endif @endif