Converse converse.js

Namespace: RegisterPanel

_converse.RegisterPanel

Methods

fetchRegistrationForm(domain_name)

Fetch a registration form from the requested domain

Parameters:
Name Type Description
domain_name String

XMPP server domain

Source:

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:

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 number

The Strophe.Status status code

Source:

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:

onRegistrationFields(stanza)

Parameters:
Name Type Description
stanza Element

The query stanza.

Source:

renderRegistrationForm(stanza)

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

Parameters:
Name Type Description
stanza Element

The IQ stanza received from the XMPP server.

Source:

reportErrors(stanza)

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

Parameters:
Name Type Description
stanza Element

The IQ stanza received from the XMPP server

Source:

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 Element

The IQ stanza.

Source:

setFields(stanza)

Stores the values that will be sent to the XMPP server during attempted registration.

Parameters:
Name Type Description
stanza Element

the IQ stanza that will be sent to the XMPP server.

Source:

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: