setting the user in ExecuteActionsActionTokenHandler.handleToken to manage user null case in FreeMarkerLoginFormsProvider.createResponse

Closes #17233

Signed-off-by: Rishabh Singh <rishabhsvats@gmail.com>
(cherry picked from commit 8cad78b1dfff5b9154d0068702544e6ef62cbc29)
This commit is contained in:
Rishabh Singh 2024-11-28 16:41:52 +05:30 committed by Marek Posolda
parent ca7b0299c6
commit e39457d979

View File

@ -89,6 +89,7 @@ public class ExecuteActionsActionTokenHandler extends AbstractActionTokenHandler
return session.getProvider(LoginFormsProvider.class)
.setAuthenticationSession(authSession)
.setUser(authSession.getAuthenticatedUser())
.setSuccess(Messages.CONFIRM_EXECUTION_OF_ACTIONS)
.setAttribute(Constants.TEMPLATE_ATTR_ACTION_URI, confirmUri)
.setAttribute(Constants.TEMPLATE_ATTR_REQUIRED_ACTIONS, token.getRequiredActions())