@Override
    protected Event routeToRegistration(final RequestContext requestContext, final Principal principal) {
        if (!casProperties.getAuthn().getMfa().getGauth().getCore().isDeviceRegistrationEnabled()) {
            return eventFactory.event(this, CasWebflowConstants.TRANSITION_ID_STOP);
        }
        return super.routeToRegistration(requestContext, principal);
    }
This is {@link GoogleAuthenticatorAccountCheckRegistrationAction}.

@author Misagh Moayyed
@since 7.2.0
support/cas-server-support-gauth-core/src/main/java/org/apereo/cas/gauth/web/flow/GoogleAuthenticatorAccountCheckRegistrationAction.java