@Override
    protected void doInitialize() {
        val pm = casProperties.getAuthn().getPm();
        if (pm.getCore().isEnabled()) {
            val pswdFlow = getFlow(FLOW_ID_PASSWORD_RESET);
            if (containsFlowState(pswdFlow, CasWebflowConstants.STATE_ID_INIT_PASSWORD_RESET)) {
                val initReset = getState(pswdFlow, CasWebflowConstants.STATE_ID_INIT_PASSWORD_RESET);
                initReset.getExitActionList().add(new ConsumerExecutionAction(requestContext -> {
                    MultifactorAuthenticationWebflowUtils.putMultifactorDeviceRegistrationEnabled(requestContext, false);
                    MultifactorAuthenticationTrustUtils.putMultifactorAuthenticationTrustedDevicesDisabled(requestContext, true);
                }));
            }
        }
    }
This is {@link PasswordManagementMultifactorTrustWebflowConfigurer}.

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