chore: move 2fa settings

This commit is contained in:
Benjamin Nussbaum 2026-01-16 09:22:37 +01:00
parent 82079b21d5
commit e9986b424d
2 changed files with 6 additions and 3 deletions

View file

@ -7,9 +7,6 @@
@if(auth()?->user()?->oidc_sub === null) @if(auth()?->user()?->oidc_sub === null)
<flux:navlist.item :href="route('user-password.edit')" wire:navigate>{{ __('Password') }}</flux:navlist.item> <flux:navlist.item :href="route('user-password.edit')" wire:navigate>{{ __('Password') }}</flux:navlist.item>
@endif @endif
@if (Laravel\Fortify\Features::canManageTwoFactorAuthentication() && auth()?->user()?->oidc_sub === null)
<flux:navlist.item :href="route('two-factor.show')" wire:navigate>{{ __('2FA') }}</flux:navlist.item>
@endif
<flux:navlist.item :href="route('settings.support')" wire:navigate>{{ __('Support') }}</flux:navlist.item> <flux:navlist.item :href="route('settings.support')" wire:navigate>{{ __('Support') }}</flux:navlist.item>
</flux:navlist> </flux:navlist>
</div> </div>

View file

@ -83,5 +83,11 @@ new class extends Component
</x-action-message> </x-action-message>
</div> </div>
</form> </form>
@if (Laravel\Fortify\Features::canManageTwoFactorAuthentication() && auth()?->user()?->oidc_sub === null)
<flux:heading class="mt-6">2FA</flux:heading>
<flux:subheading class="mb-4">Optionally, you can enable Two-Factor Authentication via TOTP</flux:subheading>
<flux:button :href="route('two-factor.show')" wire:navigate>{{ __('2FA Settings…') }}</flux:button>
@endif
</x-pages::settings.layout> </x-pages::settings.layout>
</section> </section>