diff --git a/theme/keywind/login/login-recovery-authn-code-input.ftl b/theme/keywind/login/login-recovery-authn-code-input.ftl index a46bcfa09..163bbfaa8 100644 --- a/theme/keywind/login/login-recovery-authn-code-input.ftl +++ b/theme/keywind/login/login-recovery-authn-code-input.ftl @@ -4,7 +4,11 @@ <#import "components/atoms/form.ftl" as form> <#import "components/atoms/input.ftl" as input> -<@layout.registrationLayout; section> +<@layout.registrationLayout + displayMessage=!messagesPerField.existsError('recoveryCodeInput') + ; + section +> <#if section="header"> ${msg("auth-recovery-code-header")} <#elseif section="form"> @@ -12,7 +16,9 @@ <@input.kw autocomplete="off" autofocus=true + invalid=messagesPerField.existsError('recoveryCodeInput') label=msg("auth-recovery-code-prompt", recoveryAuthnCodesInputBean.codeNumber?c) + message=kcSanitize(messagesPerField.getFirstError('recoveryCodeInput'))?no_esc name="recoveryCodeInput" type="text" />