@extends('layouts.guest') @section('content')

Two Factor Authentication

Strengthens access security by requiring two methods to verify your identity.

Two factor authentication protects against phishing, social engineering and password brute force attacks by requiring a second verification step.

@if(!($data['user']->passwordSecurity))

To enable 2FA on your account:

  1. Click the button below to generate a unique secret QR code
  2. Verify the OTP from your Google Authenticator app
@csrf
@elseif(!$data['user']->passwordSecurity->google2fa_enable)

1 Scan this barcode with your Google Authenticator App:

{!! $data['google2fa_url'] !!}

2 Enter the pin code to enable 2FA:

@csrf
@error('verify-code')

{{ $message }}

@enderror
@elseif($data['user']->passwordSecurity->google2fa_enable)
2FA is currently enabled for your account.

To disable Two Factor Authentication, confirm your password and click the button below.

@csrf
@error('current-password')

{{ $message }}

@enderror
@endif
@endsection