diff --git a/themes/src/main/resources/theme/keycloak.v2/login/login-username.ftl b/themes/src/main/resources/theme/keycloak.v2/login/login-username.ftl index 0652aa31e2..e26b8f9f43 100755 --- a/themes/src/main/resources/theme/keycloak.v2/login/login-username.ftl +++ b/themes/src/main/resources/theme/keycloak.v2/login/login-username.ftl @@ -1,6 +1,7 @@ <#import "template.ftl" as layout> <#import "field.ftl" as field> <#import "buttons.ftl" as buttons> +<#import "social-providers.ftl" as identityProviders> <@layout.registrationLayout displayMessage=!messagesPerField.existsError('username') displayInfo=(realm.password && realm.registrationAllowed && !registrationDisabled??); section> @@ -46,25 +47,8 @@ #if> <#elseif section = "socialProviders" > - <#if realm.password && social?? && social.providers?has_content> -
+ <#if realm.password && social.providers?? && social.providers?has_content> + <@identityProviders.show social=social /> #if> #if> diff --git a/themes/src/main/resources/theme/keycloak.v2/login/login.ftl b/themes/src/main/resources/theme/keycloak.v2/login/login.ftl index 100b1107c8..de456eee24 100755 --- a/themes/src/main/resources/theme/keycloak.v2/login/login.ftl +++ b/themes/src/main/resources/theme/keycloak.v2/login/login.ftl @@ -1,6 +1,7 @@ <#import "template.ftl" as layout> <#import "field.ftl" as field> <#import "buttons.ftl" as buttons> +<#import "social-providers.ftl" as identityProviders> <@layout.registrationLayout displayMessage=!messagesPerField.existsError('username','password') displayInfo=realm.password && realm.registrationAllowed && !registrationDisabled??; section> @@ -42,108 +43,7 @@ #if> <#elseif section = "socialProviders" > <#if realm.password && social.providers?? && social.providers?has_content> - - + <@identityProviders.show social=social/> #if> #if> diff --git a/themes/src/main/resources/theme/keycloak.v2/login/social-providers.ftl b/themes/src/main/resources/theme/keycloak.v2/login/social-providers.ftl new file mode 100644 index 0000000000..5bdd04ba75 --- /dev/null +++ b/themes/src/main/resources/theme/keycloak.v2/login/social-providers.ftl @@ -0,0 +1,104 @@ +<#macro show social> + + +#macro> \ No newline at end of file