@Override
    protected void doInitialize() {
        val flow = getLoginFlow();
        val pm = casProperties.getAuthn().getPm();
        if (flow != null && pm.getCore().isEnabled() && pm.getGoogleRecaptcha().isEnabled()) {
            flow.getStartActionList().add(createEvaluateAction(CasWebflowConstants.ACTION_ID_PASSWORD_RESET_INIT_CAPTCHA));

            prependActionsToActionStateExecutionList(flow,
                CasWebflowConstants.STATE_ID_SEND_PASSWORD_RESET_INSTRUCTIONS,
                CasWebflowConstants.ACTION_ID_PASSWORD_RESET_VALIDATE_CAPTCHA);
            createTransitionForState(flow, CasWebflowConstants.STATE_ID_SEND_PASSWORD_RESET_INSTRUCTIONS,
                CasWebflowConstants.TRANSITION_ID_CAPTCHA_ERROR, CasWebflowConstants.STATE_ID_SEND_RESET_PASSWORD_ACCT_INFO);
        }
    }
This is {@link PasswordManagementCaptchaWebflowConfigurer}.

@author Misagh Moayyed
@since 5.0.0
support/cas-server-support-pm-webflow/src/main/java/org/apereo/cas/pm/web/flow/PasswordManagementCaptchaWebflowConfigurer.java