title: XMPP connection to openfire server
body: <p>I'm learning XMPP Based on Strophe.js and openfire server, because I need it in a future project.</p>
  
  <p>I've configured my openfire admin account, mysql database, the Bosh Protocol and URL for http binding.</p>
  
  <p>I created my first example, here's the html (I included all js files I need in the html header like strophe.js, flXHR.js and strophe.flXHR.js):</p>
  
  <pre><code>&lt;ul&gt;
      &lt;li&gt;JID : &lt;input type="text" name="jid" id="jid" /&gt;&lt;/li&gt;
      &lt;li&gt;PASS : &lt;input type="password" name="password" id="password"/&gt;&lt;/li&gt;
      &lt;li&gt;&lt;input type="button" value="connect" id="connect" name="Connect" /&gt;&lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>And this is the javascript code :</p>
  
  <pre><code>$(document).ready(function(){
  
        connection=null;
        $('#connect').click(function (ev) {
              var jid=$('#jid').val();
              var pass=$('#password').val();
  
         var conn = new Strophe.Connection("http://127.0.0.1:2580/http-bind/");
         conn.connect(jid, pass, function (status) {
                    console.log(status);
             });
         connection = conn;
      });
  });
  </code></pre>
  
  <p>When I test the code, I type my openfire server username and password (admin,123)...  click "connect" and waiting.</p>
  
  <p>The console.log shows the following status values:</p>
  
  <pre><code>1 (connecting)
  3 (authenticating)
  5 (connected)
  </code></pre>
  
  <p>To this point, everything is good... But when I type other values different than my admin username and pass, it gives me the same status results?</p>
  
  <p>That means, the connection is established whatever is the input username and pass !!!</p>
  
  <p>What's wrong?</p>