@php $methodsByProvider = collect($authMethods)->keyBy('provider'); $hasTotp = $methodsByProvider->has('totp') && $methodsByProvider->get('totp')?->verified_at; $hasEmail = ($user->two_factor ?? false) || ($methodsByProvider->has('email') && $methodsByProvider->get('email')?->verified_at); $channelProviders = ['sms', 'whatsapp', 'telegram']; $profileMfaVerification = session('profile_mfa_verification'); @endphp
Add a second factor to protect your account from unauthorized access.
Use Google Authenticator, Authy, or a compatible TOTP app.
Scan this QR code with your authenticator app:
Alternatively, enter this setup key manually:
{{ $pendingTotpSecret }}
{{ $pendingTotpQrUrl }}
Receive one-time codes at {{ $user->email }}.
Enter the code sent to {{ $profileMfaVerification['identifier'] }}.
Connect SMS, WhatsApp, or Telegram if your organization allows them.
@php $linkedChannels = collect($authMethods)->whereIn('provider', $channelProviders); @endphp @if($linkedChannels->isNotEmpty())| Provider | Identifier | Status | |
|---|---|---|---|
| {{ $method->provider }} | {{ $method->identifier }} | @if($method->verified_at) Verified @else Unverified @endif |
No OTP channels are enabled by your organization.
@endif