Merge pull request #1093 from stianst/master

KEYCLOAK-1137 Access to logged in user data (first/last name) on any pag...
This commit is contained in:
Stian Thorgersen 2015-03-27 08:52:46 +01:00
commit 37e732c64d

View file

@ -138,11 +138,9 @@ public class FreeMarkerAccountProvider implements AccountProvider {
} }
attributes.put("features", new FeaturesBean(identityProviderEnabled, eventsEnabled, passwordUpdateSupported)); attributes.put("features", new FeaturesBean(identityProviderEnabled, eventsEnabled, passwordUpdateSupported));
attributes.put("account", new AccountBean(user, profileFormData));
switch (page) { switch (page) {
case ACCOUNT:
attributes.put("account", new AccountBean(user, profileFormData));
break;
case TOTP: case TOTP:
attributes.put("totp", new TotpBean(realm, user, baseUri)); attributes.put("totp", new TotpBean(realm, user, baseUri));
break; break;