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

Security

@if (session('recovery_codes'))

Your backup codes

Each code signs you in once if your phone isn't handy. They are shown only now. Keep them in your password manager or print them.

user()->email.")\nEach works once.\n\n".implode("\n", session('recovery_codes'))."\n") }}">Download .txt I've saved them

@endif

Two-step sign-in

@if ($mfa?->confirmed_at)

On Authenticator app connected {{ $mfa->confirmed_at->format('M j, Y') }}. Last code used {{ $mfa->last_used_at?->diffForHumans() ?? 'never' }}.

Backup codes left: {{ $mfa->remainingCodes() }} of {{ \App\Models\AdminMfa::CODE_COUNT }}@if ($mfa->remainingCodes() <= 3) make new ones@endif

@include('partials.errors')
@csrf

New codes replace the old ones. To move to a new phone, run sudo -u www-data php artisan hc:admin-mfa-reset {{ auth('admin')->user()->email }} on the server and sign in again.

@else

Not set up.

@endif

Password

To change your password, sign out and use Forgot your password?. Changing it signs out every other admin session.

@endsection @push('scripts') @endpush