title: Register XMPP-Account using the Strophe.js-Register-Plugin
body: <p>I try to register a xmpp-account using the strophe-register-plugin (<a href="https://github.com/metajack/strophejs-plugins/tree/master/register" rel="nofollow noreferrer">https://github.com/metajack/strophejs-plugins/tree/master/register</a>). It works fine with the connection manager from example "<a href="http://bosh.metajack.im:5280/xmpp-httpbind" rel="nofollow noreferrer">http://bosh.metajack.im:5280/xmpp-httpbind</a>" but I can't register the account using the OpenFire connection manager. (Normal login works with both connection managers...)</p>
  
  <p>Connection State Changes are 1 -> 10, thats it. 1 means "connecting" but i dont know what 10 means...</p>
  
  <pre><code>var connection = new Strophe.Connection(
  //          "http://bosh.metajack.im:5280/xmpp-httpbind");
          "http://localhost/http-bind");
  
  var callback = function (status) {alert(status);
      if (status === Strophe.Status.REGISTER) {
          connection.register.fields.username = "fghdfhg";
          connection.register.fields.name = "dfgfdgfdg";
          connection.register.fields.password = "dfddfgfdg";
          connection.register.submit();
      } else if (status === Strophe.Status.REGISTERED) {
          console.log("registered!");
          connection.authenticate();
      } else if (status === Strophe.Status.CONNECTED) {
          $(document).trigger('connected');
      } else if (status === Strophe.Status.DISCONNECTED) {
          console.log("Disconnected from XMPP-Server");
      }
  };
  
  //    connection.connect(data.jid, data.password, callback);
  connection.register.connect("xyz.com", callback, 60, 1);
  </code></pre>