From f67e5355dfe73887bf8eb42217c59b190403ebe5 Mon Sep 17 00:00:00 2001 From: Bohui WU Date: Tue, 5 Aug 2025 14:37:41 +0800 Subject: [PATCH] fix: only show identity-provider section when providers are configured --- theme/keywind/login/login-username.ftl | 2 +- theme/keywind/login/login.ftl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/theme/keywind/login/login-username.ftl b/theme/keywind/login/login-username.ftl index b8064b2da..9c071ed8e 100644 --- a/theme/keywind/login/login-username.ftl +++ b/theme/keywind/login/login-username.ftl @@ -64,7 +64,7 @@ <#elseif section="socialProviders"> - <#if realm.password && social.providers??> + <#if realm.password && social.providers?? && social.providers?has_content> <@identityProvider.kw providers=social.providers /> diff --git a/theme/keywind/login/login.ftl b/theme/keywind/login/login.ftl index 331da069f..5de201496 100644 --- a/theme/keywind/login/login.ftl +++ b/theme/keywind/login/login.ftl @@ -80,7 +80,7 @@ <#elseif section="socialProviders"> - <#if realm.password && social.providers??> + <#if realm.password && social.providers?? && social.providers?has_content> <@identityProvider.kw providers=social.providers />