Fix label wrapper class in config-totp template

The labels in `login-config-totp.ftl` were wrapped with the
`kcInputWrapperClass` instead of the intended `kcLabelWrapperClass`.

This caused incorrect styling in custom themes inheriting the base
theme.

Update the markup to use `kcLabelWrapperClass`, matching the rest of the
theme and ensuring consistent label styling.

Closes #45053

Signed-off-by: Geremia Taglialatela <tagliala.dev@gmail.com>
This commit is contained in:
Geremia Taglialatela 2026-01-07 18:32:43 +01:00 committed by GitHub
parent bcc8f684f2
commit c6b13cb2ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -52,7 +52,7 @@
<form action="${url.loginAction}" class="${properties.kcFormClass!}" id="kc-totp-settings-form" method="post">
<div class="${properties.kcFormGroupClass!}">
<div class="${properties.kcInputWrapperClass!}">
<div class="${properties.kcLabelWrapperClass!}">
<label for="totp" class="control-label">${msg("authenticatorCode")}</label> <span class="required">*</span>
</div>
<div class="${properties.kcInputWrapperClass!}">
@ -74,7 +74,7 @@
</div>
<div class="${properties.kcFormGroupClass!}">
<div class="${properties.kcInputWrapperClass!}">
<div class="${properties.kcLabelWrapperClass!}">
<label for="userLabel" class="control-label">${msg("loginTotpDeviceName")}</label> <#if totp.otpCredentials?size gte 1><span class="required">*</span></#if>
</div>