Two-Factor Authentication

@if (session('success'))
{{ session('success') }}
@endif @if ($user->hasTwoFactorEnabled()) {{-- 2FA is enabled --}}
Two-factor authentication is enabled
@elseif ($showingQrCode) {{-- Setup QR Code --}}

Scan this QR code with your authenticator app (Google Authenticator, Authy, etc.)

{!! $qrCodeSvg !!}

Or enter this code manually:

{{ $secret }}
@error('code')

{{ $message }}

@enderror
@elseif ($showingRecoveryCodes) {{-- Recovery Codes Display --}}

Important: Store these recovery codes in a secure location. Each code can only be used once.

@foreach ($recoveryCodes as $recoveryCode)
{{ $recoveryCode }}
@endforeach
@else {{-- 2FA not enabled --}}

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

@endif