Converse converse.js

Namespace: RegisterPanel

_converse.RegisterPanel

Methods

(private) fetchRegistrationForm(domain_name)

Fetch a registration form from the requested domain

Parameters:
Name Type Description
domain_name String

XMPP server domain

Source:

(private) getRegistrationFields(req, callback)

Send an IQ stanza to the XMPP server asking for the registration fields.

Parameters:
Name Type Description
req Strophe.Request

The current request

callback function

The callback function

Source:

(private) onConnectStatusChanged(status_code)

Callback function called by Strophe whenever the connection status changes. Passed to Strophe specifically during a registration attempt.

Parameters:
Name Type Description
status_code integer

The Strophe.Status status code

Source:

(private) onProviderChosen(form)

Callback method that gets called when the user has chosen an XMPP provider

Parameters:
Name Type Description
form HTMLElement

The form that was submitted

Source:

(private) onRegistrationFields(stanza)

Parameters:
Name Type Description
stanza XMLElement

The query stanza.

Source:

(private) renderRegistrationForm(stanza)

Renders the registration form based on the XForm fields received from the XMPP server.

Parameters:
Name Type Description
stanza XMLElement

The IQ stanza received from the XMPP server.

Source:

(private) reportErrors(stanza)

Report back to the user any error messages received from the XMPP server after attempted registration.

Parameters:
Name Type Description
stanza XMLElement

The IQ stanza received from the XMPP server

Source:

(private) reportErrors(stanza)

Callback method that gets called when a return IQ stanza is received from the XMPP server, after attempting to register a new user.

Parameters:
Name Type Description
stanza XMLElement

The IQ stanza.

Source:

(private) submitRegistrationForm(form)

Handler, when the user submits the registration form. Provides form error feedback or starts the registration process.

Parameters:
Name Type Description
form HTMLElement

The HTML form that was submitted

Source: