Enable 2FA Without QR Code (#248)

This commit is contained in:
Rasel Islam Rafi 2024-06-29 13:30:28 +06:00 committed by GitHub
parent e031bafba5
commit ad027eb033
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -46,6 +46,16 @@
<div class="mt-5">
{!! auth()->user()->twoFactorQrCodeSvg() !!}
</div>
<div class="mt-5">
{{ __("If you are unable to scan the QR code, please use the 2FA secret instead.") }}
</div>
<div class="mt-2">
<div class="inline-block rounded-md border border-gray-100 p-2 dark:border-gray-700">
{{ decrypt(auth()->user()->two_factor_secret) }}
</div>
</div>
@endif
{{-- Show 2FA Recovery Codes --}}