KEYCLOAK-1137 Access to logged in user data (first/last name) on any page in freemarker

This commit is contained in:
Stian Thorgersen 2015-03-27 08:08:20 +01:00
parent f6d3e76b67
commit be13b88d24

View file

@ -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;