Fixed 2FA manual secret erroneous display sometimes

This commit is contained in:
Pinga 2024-02-19 21:08:20 +02:00
parent 26c983a0b2
commit aa0f3e4eb1

View file

@ -104,8 +104,8 @@
<img src="{{ qrcodeDataUri }}" alt="2FA QR Code" class="img-fluid"> <img src="{{ qrcodeDataUri }}" alt="2FA QR Code" class="img-fluid">
</div> </div>
<div class="mb-3"> <div class="mb-3">
<p class="font-weight-bold">{{ __('Manual Entry Secret') }}</p> <p class="font-weight-bold mb-1">{{ __('Manual Entry Secret') }}</p>
<code>{{ secret|split(4)|join(' ') }}</code> <p class="tracking-wide mb-0"><kbd>{{ secret }}</kbd></p>
<small class="form-text text-muted"> <small class="form-text text-muted">
{{ __('If you\'re unable to scan the QR code, enter this secret manually into your authentication app. The secret is case-sensitive and should be entered exactly as shown.') }} {{ __('If you\'re unable to scan the QR code, enter this secret manually into your authentication app. The secret is case-sensitive and should be entered exactly as shown.') }}
</small> </small>