added possibility to use user
in terms.ftl (#7831)
This commit is contained in:
parent
e7a3e4b601
commit
e47bbba7ef
1 changed files with 3 additions and 1 deletions
|
@ -63,7 +63,9 @@ public class TermsAndConditions implements RequiredActionProvider, RequiredActio
|
|||
|
||||
@Override
|
||||
public void requiredActionChallenge(RequiredActionContext context) {
|
||||
Response challenge = context.form().createForm("terms.ftl");
|
||||
Response challenge = context.form()
|
||||
.setAttribute("user", context.getAuthenticationSession().getAuthenticatedUser())
|
||||
.createForm("terms.ftl");
|
||||
context.challenge(challenge);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue