Skip to content

Commit

Permalink
#40 Pass current user infos to create-tenant.ftl context
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffreyfourmis committed May 18, 2024
1 parent bfa74c6 commit 8c271e8
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ public void evaluateTriggers(RequiredActionContext context) {
@Override
public void requiredActionChallenge(RequiredActionContext context) {
log.debug("Initializing challenge to create a tenant");
Response challenge = context.form().createForm("create-tenant.ftl");
Response challenge = context.form()
.setAttribute("user", context.getAuthenticationSession().getAuthenticatedUser())
.createForm("create-tenant.ftl");
context.challenge(challenge);
}

Expand Down

0 comments on commit 8c271e8

Please sign in to comment.