fix(profile): show an enabled badge for two-factor authentication

This commit is contained in:
peaklabs-dev
2026-09-08 13:07:40 +02:00
parent 0615c784ac
commit b81381e85b
2 changed files with 5 additions and 4 deletions
@@ -218,8 +218,9 @@
<h2>Two-factor authentication</h2>
<p>Add a time-based one-time password to protect your account.</p>
</div>
@if (! request()->user()->two_factor_confirmed_at
&& session('status') !== 'two-factor-authentication-enabled')
@if (request()->user()->two_factor_confirmed_at)
<x-status-badge status="Enabled" type="success" />
@elseif (session('status') !== 'two-factor-authentication-enabled')
<form action="/user/two-factor-authentication" method="POST">
@csrf
<x-forms.button type="submit">Configure 2FA</x-forms.button>