diff --git a/resources/views/livewire/two-factor-authentication.blade.php b/resources/views/livewire/two-factor-authentication.blade.php index 89adc7c..e59a1d4 100644 --- a/resources/views/livewire/two-factor-authentication.blade.php +++ b/resources/views/livewire/two-factor-authentication.blade.php @@ -52,7 +52,7 @@ {{__('Store these recovery codes in a secure password manager. They can be used to recover access to your account if your two factor authentication device is lost.')}}

-
+
@foreach($this->getUser()->recoveryCodes() as $code)

{{$code}}

@endforeach @@ -67,5 +67,11 @@ - {{-- Success is as dangerous as failure. --}} + @if(!filament('filament-two-factor-authentication')->hasEnforcedTwoFactorSetup() || filament()->auth()->user()?->hasEnabledTwoFactorAuthentication()) +
+ + {{__('Dashboard')}} + +
+ @endif
diff --git a/resources/views/pages/setup.blade.php b/resources/views/pages/setup.blade.php index 87f8067..8ab3d0b 100644 --- a/resources/views/pages/setup.blade.php +++ b/resources/views/pages/setup.blade.php @@ -1,10 +1,4 @@ @php use Stephenjude\FilamentTwoFactorAuthentication\Livewire\TwoFactorAuthentication; @endphp @livewire(TwoFactorAuthentication::class, ['aside' => false, 'redirectTo' => filament()->getCurrentPanel()->getProfileUrl()]) - - @if(!filament('filament-two-factor-authentication')->hasEnforcedTwoFactorSetup() || filament()->auth()->user()?->hasEnabledTwoFactorAuthentication()) - - {{__('Dashboard')}} - - @endif