Make the user attribute available to the idp-review-user-profile.ftl template

Closes #25872

Signed-off-by: Pedro Igor <pigor.craveiro@gmail.com>
This commit is contained in:
Pedro Igor 2024-01-03 11:20:02 -03:00
parent 022e809373
commit 15b10f58fc

View file

@ -296,6 +296,7 @@ public class FreeMarkerLoginFormsProvider implements LoginFormsProvider {
case IDP_REVIEW_USER_PROFILE:
UpdateProfileContext idpCtx = (UpdateProfileContext) attributes.get(LoginFormsProvider.UPDATE_PROFILE_CONTEXT_ATTR);
attributes.put("profile", new IdpReviewProfileBean(idpCtx, formData, session));
attributes.put("user", new ProfileBean(idpCtx, formData));
break;
case FRONTCHANNEL_LOGOUT:
attributes.put("logout", new FrontChannelLogoutBean(session));