@extends('layouts.app') @section('title','Account security') @section('content')

Multi-factor authentication

{{ auth()->user()->two_factor_confirmed_at?'Enabled':'Optional ยท not enabled' }}
@if(!auth()->user()->two_factor_secret)

Sign in with your email and password, or add an authenticator for extra protection. MFA is optional for employees, managers, company administrators and Super Admin.

@csrf
Continue to workspace @elseif(!auth()->user()->two_factor_confirmed_at)

Scan this QR code in your authenticator, then enter the six digit code to confirm. MFA becomes active only after confirmation.

{!! auth()->user()->twoFactorQrCodeSvg() !!}
Manual setup key{{ decrypt(auth()->user()->two_factor_secret) }}
@csrf
Continue to workspace @else

Your account is protected. Keep recovery codes in a safe place. Each code can be used once if you lose your authenticator.

Show recovery codes
@foreach(auth()->user()->recoveryCodes() as $code){{ $code }}@endforeach
@csrf
Continue to workspace @endif @if(auth()->user()->two_factor_secret)
{{ auth()->user()->two_factor_confirmed_at?'Turn off MFA':'Cancel authenticator setup' }}

After turning off MFA, you can sign in with your email and password. You can enable it again at any time. Password confirmation protects this change.

@csrf @method('DELETE')
@endif
@endsection