@extends('layouts.admin') @section('title', 'Security') @section('content')

Two-factor authentication.

Use an authenticator app to add an extra layer of protection to your admin account.

@if (! auth('admin')->user()->two_factor_secret && ! $secret)

2FA is not enabled

After enabling it, you’ll enter a six-digit code whenever you sign in.

@csrf
@elseif ($secret)

Set up your authenticator app

1. Scan the QR code

Open your authenticator app and scan this code.

Can’t scan it?

Copy and enter this setup key manually.

{{ $secret }}
@csrf
@else
2FA enabled

Your admin account is protected.

You’ll be asked for an authenticator code each time you sign in.

Disable 2FA
@csrf
@endif @endsection