package org.apereo.cas.pm.web.flow;
import org.apereo.cas.configuration.CasConfigurationProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.webflow.action.AbstractAction;
import org.springframework.webflow.execution.Event;
import org.springframework.webflow.execution.RequestContext;
/**
* This is {@link InitPasswordChangeAction}, serves a as placeholder for extensions.
*
* @author Misagh Moayyed
* @since 5.0.0
*/
public class InitPasswordChangeAction extends AbstractAction {
@Autowired
private CasConfigurationProperties casProperties;
@Override
protected Event doExecute(final RequestContext requestContext) throws Exception {
requestContext.getFlowScope().put("policyPattern", casProperties.getAuthn().getPm().getPolicyPattern());
return null;
}
}