services/src/main/java/org/keycloak/services/resources/LoginActionsService.java
/**
     * protocol independent registration page entry point
     *
     * @param code
     * @return
     */
protocol independent registration page entry point
@param code
@return
protocol independent registration page entry point @param code @return
@Path("registration")
    @GET
    public Response registerPage(@QueryParam("code") String code) {
        event.event(EventType.REGISTER);
        if (!realm.isRegistrationAllowed()) {
            event.error(Errors.REGISTRATION_DISABLED);
            return ErrorPage.error(session, Messages.REGISTRATION_NOT_ALLOWED);
        }
        Checks checks = new Checks();
        if (!checks.check(code)) {
            return checks.response;
        }
        event.detail(Details.CODE_ID, code);
        ClientSessionCode clientSessionCode = checks.clientCode;
        ClientSessionModel clientSession = clientSessionCode.getClientSession();
        authManager.expireIdentityCookie(realm, uriInfo, clientConnection);
        return session.getProvider(LoginFormsProvider.class)
                .setClientSessionCode(clientSessionCode.getCode())
                .createRegistration();
    }
@ Path ( "registration" ) @ GET public Response registerPage ( @ QueryParam ( "code" ) String code ) { event . event ( EventType . REGISTER ) ; if ( ! realm . isRegistrationAllowed ( ) ) { event . error ( Errors . REGISTRATION_DISABLED ) ; return ErrorPage . error ( session , Messages . REGISTRATION_NOT_ALLOWED ) ; } Checks checks = new Checks ( ) ; if ( ! checks . check ( code ) ) { return checks . response ; } event . detail ( Details . CODE_ID , code ) ; ClientSessionCode clientSessionCode = checks . clientCode ; ClientSessionModel clientSession = clientSessionCode . getClientSession ( ) ; authManager . expireIdentityCookie ( realm , uriInfo , clientConnection ) ; return session . getProvider ( LoginFormsProvider . class ) . setClientSessionCode ( clientSessionCode . getCode ( ) ) . createRegistration ( ) ; }
protocol independent registration page entry point
 @param code
 @return
protocol independent registration page entry point @param code @return