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

Account Security

Manage administrator authentication and active security controls.

@if(session('status'))
{{ session('status') }}
@endif @if($errors->any())
Action could not be completed.
@endif @if(session('recovery_codes'))

New recovery codes

Save these codes now. Each code can be used once and they will not be shown again.

@foreach(session('recovery_codes') as $code)
{{ $code }}
@endforeach
@endif

Two-factor authentication

Authenticator-based one-time codes protect admin access.

{{ $admin->hasTwoFactorEnabled() ? 'Enabled' : 'Not enabled' }}
@if($admin->hasTwoFactorEnabled())
Your account is protected with two-factor authentication.
Replace authenticator

Disable two-factor authentication

Password confirmation is required. This reduces account security.

@csrf @method('DELETE')
@else
Two-factor authentication is not enabled.
Set up 2FA @endif

Login security

Account{{ $admin->email }}
Last login{{ $admin->last_login_at?->diffForHumans() ?? 'Not recorded' }}
Session timeout{{ config('session.admin_timeout', 30) }} minutes
Account statusActive

Security recommendations

  • Keep recovery codes in an encrypted password manager.
  • Never share authentication codes or setup keys.
  • Sign out from shared administrator devices.
@endsection