fix: update recovery code display to adapt background color based on theme

This commit is contained in:
Théophile Diot 2024-11-26 10:44:44 +01:00
parent ac104b223c
commit 69b59ef68e
No known key found for this signature in database
GPG key ID: FA995104A0BA376A

View file

@ -609,7 +609,7 @@
<div class="row g-3">
{% for code in totp_recovery_codes %}
<div class="col-6">
<div class="p-3 border rounded bg-light shadow-sm text-center recovery-code">{{ code }}</div>
<div class="p-3 border rounded bg-{% if theme == 'light' %}light{% else %}dark{% endif %} shadow-sm text-center recovery-code">{{ code }}</div>
</div>
{% endfor %}
</div>