@extends('layouts.app') @section('title', '2FA Confirmation - ' . config('app.name', 'Laravel 2FA')) @section('content')

Complete 2FA Setup

Scan the QR code with your authenticator app and enter the verification code

Step 1: Scan QR Code

QR Code

Scan this QR code with Google Authenticator, Authy, or similar apps

Step 2: Manual Entry (Optional)

If you can't scan the QR code, manually enter this secret key:

{{ $secret }}
@csrf @if ($errors->any())

Verification Failed

    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif @if (config('app.env') === 'local')

Development Information

Secret: {{ $secret }}

Expected Code: {{ (new \App\TOTPService())->generateTOTP($secret) }}

Development bypass code: 123456

⚠️ Use the Expected Code above in your authenticator app for testing!

@endif

Enter the 6-digit code from your authenticator app to confirm setup

Need Help?

Make sure your device's time is synchronized

Codes are valid for 30 seconds

Try refreshing your authenticator app if needed

@endsection