refactor: Update profile index view to display 2FA QR code in a centered container

This commit is contained in:
Andras Bacsai 2024-06-21 13:56:07 +02:00
parent c5083ea897
commit f5cea7d9e3

View File

@ -40,7 +40,7 @@
<x-forms.button type="submit">Validate 2FA</x-forms.button>
</form>
<div>
<div>{!! request()->user()->twoFactorQrCodeSvg() !!}</div>
<div class="flex items-center justify-center w-64 h-64 bg-transparent">{!! request()->user()->twoFactorQrCodeSvg() !!}</div>
<div x-data="{ showCode: false }" class="py-2">
<template x-if="showCode">
<div class="py-2 ">{!! decrypt(request()->user()->two_factor_secret) !!}</div>