diff --git a/login/login-otp.ftl b/login/login-otp.ftl index 395b8c3..392e613 100644 --- a/login/login-otp.ftl +++ b/login/login-otp.ftl @@ -1,9 +1,9 @@ <#import "template.ftl" as layout> <@layout.registrationLayout; section> <#if section="header"> - ${msg("loginTitle",(realm.displayName!''))} +

OTP Validation

+

OTP Validation

<#elseif section="form"> -

OTP Validation

diff --git a/login/login.ftl b/login/login.ftl index 2029303..01e0dd3 100644 --- a/login/login.ftl +++ b/login/login.ftl @@ -1,9 +1,9 @@ <#import "template.ftl" as layout> <@layout.registrationLayout displayInfo=social.displayInfo displayWide=(realm.password && social.providers??); section> <#if section = "header"> - ${msg("loginTitle",(realm.displayName!''))} +

Login

+

Login

<#elseif section = "form"> -

Log In

diff --git a/login/template.ftl b/login/template.ftl index 31b1ae9..e8fcbc9 100644 --- a/login/template.ftl +++ b/login/template.ftl @@ -24,6 +24,21 @@
+ <#nested "header"> + + <#-- App-initiated actions should not see warning messages about the need to complete the action --> + <#-- during login. --> + <#if displayMessage && message?has_content && (message.type != 'warning' || !isAppInitiatedAction??)> + <#if message.type == 'error'> +
+ <#else> +
+ <#endif> + ${kcSanitize(message.summary)?no_esc} +
+ + + <#nested "form">