From be13b88d247e4aeea6ab322cefbfc7c0a49c4c3d Mon Sep 17 00:00:00 2001 From: Stian Thorgersen Date: Fri, 27 Mar 2015 08:08:20 +0100 Subject: [PATCH] KEYCLOAK-1137 Access to logged in user data (first/last name) on any page in freemarker --- .../account/freemarker/FreeMarkerAccountProvider.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/forms/account-freemarker/src/main/java/org/keycloak/account/freemarker/FreeMarkerAccountProvider.java b/forms/account-freemarker/src/main/java/org/keycloak/account/freemarker/FreeMarkerAccountProvider.java index 8497fc6b1f..4e0c007deb 100755 --- a/forms/account-freemarker/src/main/java/org/keycloak/account/freemarker/FreeMarkerAccountProvider.java +++ b/forms/account-freemarker/src/main/java/org/keycloak/account/freemarker/FreeMarkerAccountProvider.java @@ -138,11 +138,9 @@ public class FreeMarkerAccountProvider implements AccountProvider { } attributes.put("features", new FeaturesBean(identityProviderEnabled, eventsEnabled, passwordUpdateSupported)); + attributes.put("account", new AccountBean(user, profileFormData)); switch (page) { - case ACCOUNT: - attributes.put("account", new AccountBean(user, profileFormData)); - break; case TOTP: attributes.put("totp", new TotpBean(realm, user, baseUri)); break;