{{-- Shared Two-Factor Authentication setup panel. Expected variables: - $twofaEnabled bool — whether 2FA is already confirmed for the user - $pending2fa array|null — ['secret' => ..., 'uri' => ...] when setup is pending - $confirmRoute string — POST endpoint that verifies the first code - $disableRoute string — POST endpoint that turns 2FA off - $recoveryRoute string — POST endpoint that regenerates recovery codes Uses: FontAwesome + the qrcode.js library loaded from a CDN. Pure client-side, no external API call happens for QR rendering — the otpauth:// URI is passed straight to the library in the browser. --}} @once @push('styles') @endpush @endonce
Store these somewhere safe. Each can be used once to sign in if you lose your authenticator device. You won't see them again after leaving this page.
Scan the QR code below with Google Authenticator, Authy, or any compatible app — then enter the 6-digit code to finish enabling 2FA.
2FA setup is temporarily unavailable. Refresh and try again.
@endif